(url)
| 101 | |
| 102 | |
| 103 | def sha256_of_url(url): |
| 104 | r = http.request("GET", url) |
| 105 | if r.status != 200: |
| 106 | raise RuntimeError(f"Failed to download {url}: HTTP {r.status}") |
| 107 | return hashlib.sha256(r.data).hexdigest() |
| 108 | |
| 109 | |
| 110 | def sha256_of(commit, filename): |
no test coverage detected