aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2011-08-28 22:10:03 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2011-08-28 22:10:03 +0200
commit5f9f2b739678dc8a02879714c8987dd887040676 (patch)
tree6d23507ea9e7725634d55a10919831468b4f5e53
parent4618f3da74c61c79be3187a2818ea1ce6b28bb18 (diff)
downloadyoutube-dl-5f9f2b739678dc8a02879714c8987dd887040676.tar.xz
Update: Write downloaded file without modification (allows hashsums)
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
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: