From: Philipp Hagemeister Date: Sun, 28 Aug 2011 20:10:03 +0000 (+0200) Subject: Update: Write downloaded file without modification (allows hashsums) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=5f9f2b739678dc8a02879714c8987dd887040676;p=youtube-dl Update: Write downloaded file without modification (allows hashsums) --- diff --git a/youtube-dl b/youtube-dl index 3d43355c7..11d8ca01c 100755 --- 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: