1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

Update: Write downloaded file without modification (allows hashsums)

This commit is contained in:
Philipp Hagemeister 2011-08-28 22:10:03 +02:00
parent 4618f3da74
commit 5f9f2b7396

View file

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