We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8608af commit 3d0ed54Copy full SHA for 3d0ed54
download_wheels.py
@@ -62,15 +62,15 @@ def download_file(
62
url = file_info['url']
63
dest = download_dir / fname
64
65
- # 1) if file exists, check its SHA256
+ # if file exists, check its SHA256
66
if dest.exists() and expected_sha:
67
if sha256_of(dest).lower() == expected_sha.lower():
68
progress.update(task_id, advance=1)
69
return
70
else:
71
dest.unlink() # bad checksum, force re-download
72
73
- # 2) otherwise stream-download with a per-file progress bar
+ # otherwise stream-download with a per-file progress bar
74
r = requests.get(url, stream=True)
75
r.raise_for_status()
76
total = int(r.headers.get('Content-Length', 0))
0 commit comments