Update: Write downloaded file without modification (allows hashsums)

pull/130/merge^2
Philipp Hagemeister 2011-08-28 22:10:03 +02:00
parent 4618f3da74
commit 5f9f2b7396
1 changed files with 1 additions and 1 deletions

View File

@ -2965,7 +2965,7 @@ def updateSelf(downloader, filename):
sys.exit('ERROR: unable to download latest version') sys.exit('ERROR: unable to download latest version')
try: try:
stream = open(filename, 'w') stream = open(filename, 'wb')
stream.write(newcontent) stream.write(newcontent)
stream.close() stream.close()
except (IOError, OSError), err: except (IOError, OSError), err: