Skip to content

Commit c9c2385

Browse files
author
Taylor Brazelton
authored
Update __init__.py
1 parent c04d475 commit c9c2385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smartfile/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def download(self, file_to_be_downloaded, perform_download=True):
160160
# download uses shutil.copyfileobj to download, which copies
161161
# the data in chunks
162162
o = open(file_to_be_downloaded, 'wb')
163-
return shutil.copyfileobj(response.raw, o)
163+
return shutil.copyfileobj(response.data, o)
164164

165165
def move(self, src_path, dst_path):
166166
# check destination folder for / at end

0 commit comments

Comments
 (0)