Merge pull request #24 from ctfhacker/master

file.get() returns bytes, autofetch() needs to also write bytes to it…
pull/23/merge
Zach Riggle 10 years ago
commit ec2f6cc935

@ -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