From 58c56ce7aea12980f4be7e62840f461bb6f0cbc4 Mon Sep 17 00:00:00 2001 From: Robo Date: Wed, 2 Jul 2014 02:02:23 +0530 Subject: [PATCH] specify mode for windows --- script/lib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/lib/util.py b/script/lib/util.py index c66dca810e67..f5238660dc8d 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