From 5a40638b839358b2e634516f1bab8806d85e7fcc Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 12 Jun 2012 01:06:58 +0200 Subject: [PATCH] Fix download error on Win32. --- share/gitian-updater | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/gitian-updater b/share/gitian-updater index c736a11..8b3e65d 100755 --- a/share/gitian-updater +++ b/share/gitian-updater @@ -61,7 +61,7 @@ def download(url, dest): print "Downloading from %s"%(url) file_name = url.split('/')[-1] u = urllib2.urlopen(url) - f = open(dest, 'w') + f = open(dest, 'wb') meta = u.info() file_size = int(meta.getheaders("Content-Length")[0]) if quiet == 0: