]> khamidou — GitHub mirrors - electron.git/commitdiff
specify mode for windows
authorRobo <hop2deep@gmail.com>
Tue, 1 Jul 2014 20:32:23 +0000 (02:02 +0530)
committerRobo <hop2deep@gmail.com>
Tue, 1 Jul 2014 20:32:23 +0000 (02:02 +0530)
script/lib/util.py

index c66dca810e67a7b9a7b22b00dfeeb6add1f69290..f5238660dc8d579d16aefee623484799b57a59a4 100644 (file)
@@ -30,7 +30,7 @@ def scoped_cwd(path):
 
 
 def download(text, url, path):
-  with open(path, 'w') as local_file:
+  with open(path, 'wb') as local_file:
     web_file = urllib2.urlopen(url)
     file_size = int(web_file.info().getheaders("Content-Length")[0])
     downloaded_size = 0