From: Robo Date: Tue, 1 Jul 2014 20:32:23 +0000 (+0530) Subject: specify mode for windows X-Git-Tag: v0.15.5~10^2~12^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=58c56ce7aea12980f4be7e62840f461bb6f0cbc4;p=electron.git specify mode for windows --- diff --git a/script/lib/util.py b/script/lib/util.py index c66dca81..f5238660 100644 --- a/script/lib/util.py +++ b/script/lib/util.py @@ -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