Update: Write downloaded file without modification (allows hashsums)
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 28 Aug 2011 20:10:03 +0000 (22:10 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 28 Aug 2011 20:10:03 +0000 (22:10 +0200)
youtube-dl

index 3d43355..11d8ca0 100755 (executable)
@@ -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: