mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-15 17:56:39 +00:00
Update: Write downloaded file without modification (allows hashsums)
This commit is contained in:
parent
4618f3da74
commit
5f9f2b7396
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user