(url: str)
| 33 | |
| 34 | |
| 35 | def get_github_src_url(url: str) -> str: |
| 36 | # Change hostname to raw.githubusercontent.com |
| 37 | path = urllib.parse.urlparse(url).path |
| 38 | path = path.replace("/blob/", "/", 1) |
| 39 | return f"https://raw.githubusercontent.com{path}" |
| 40 | |
| 41 | |
| 42 | def is_gist_src(url: str) -> bool: |
no test coverage detected
searching dependent graphs…