file.get() returns bytes, autofetch() needs to also write bytes to its file

pull/24/head
thebarbershopper 10 years ago
parent e652fd53e5
commit 22867ed153

@ -89,7 +89,7 @@ def autofetch():
filename = os.path.basename(objfile) filename = os.path.basename(objfile)
local_path = os.path.join(remote_files_dir, filename) local_path = os.path.join(remote_files_dir, filename)
with open(local_path, 'w+') as f: with open(local_path, 'wb+') as f:
f.write(data) f.write(data)
remote_files[objfile] = local_path remote_files[objfile] = local_path

Loading…
Cancel
Save