commit 5f9f2b739678dc8a02879714c8987dd887040676
parent 4618f3da74c61c79be3187a2818ea1ce6b28bb18
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Sun, 28 Aug 2011 22:10:03 +0200
Update: Write downloaded file without modification (allows hashsums)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube-dl b/youtube-dl
@@ -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: