Skip to content

Commit 82fc4d6

Browse files
committed
Removed duplicate request line
1 parent 690aab0 commit 82fc4d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

runtime/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525
Log("setup")
2626
for url in downloads:
2727
try:
28-
response = requests.get(url)
29-
filename = dir_path / url.split("/")[-1]
3028
with requests.get(url, stream=True) as r:
3129
r.raise_for_status()
30+
filename = dir_path / url.split("/")[-1]
3231
with open(filename, 'wb') as f:
3332
for chunk in r.iter_content(chunk_size=8192):
3433
# If you have chunk encoded response uncomment if

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy