MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / sha256_of_url

Function sha256_of_url

scripts/update_cddl.py:103–107  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

101
102
103def 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
110def sha256_of(commit, filename):

Callers 3

sha256_ofFunction · 0.70
build_dfns_entriesFunction · 0.70
resolve_bidi_specFunction · 0.70

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected