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

Function sha256_of_url

scripts/update_docfx.py:54–60  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

52
53
54def sha256_of_url(url):
55 digest = hashlib.sha256()
56 r = http.request("GET", url, preload_content=False)
57 for chunk in r.stream(1024 * 1024):
58 digest.update(chunk)
59 r.release_conn()
60 return digest.hexdigest()
61
62
63def render_docfx_repo(version, sha256):

Callers 1

mainFunction · 0.85

Calls 3

updateMethod · 0.80
requestMethod · 0.45
streamMethod · 0.45

Tested by

no test coverage detected