From e8ceb6db8e37c2bc0f80553fddd4b1cebec3ad3e Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Wed, 25 Oct 2017 08:03:06 -0700 Subject: [PATCH] write requests response content more idomatically --- pipenv/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pipenv/utils.py b/pipenv/utils.py index bf99cdd5..d63190af 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -944,6 +944,5 @@ def download_file(url, filename): if not r.ok: raise IOError('Unable to download file') - r.raw.decode_content = True with open(filename, 'wb') as f: - shutil.copyfileobj(r.raw, f) + f.write(r.content)