Sefa Eyeoglu 1c838d992e
chore: reformat using black
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-02-25 00:19:55 +01:00

7 lines
210 B
Python

def download_binary_file(sess, path, url):
with open(path, "wb") as f:
r = sess.get(url)
r.raise_for_status()
for chunk in r.iter_content(chunk_size=128):
f.write(chunk)