summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2013-07-04 12:19:54 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2013-07-04 12:19:54 +0200
commit0632ad9c4109deee20c2d110b8541c4907f3bc9d (patch)
tree77b4650c170eb17eb4d3db75d2cb9b6682941448
parent233c0a1ccdb7ec3a2c79ff63901522ff04f9a54b (diff)
downloadbabel-0632ad9c4109deee20c2d110b8541c4907f3bc9d.tar.gz
Fixed the cldr download and import
-rwxr-xr-xscripts/download_import_cldr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/download_import_cldr.py b/scripts/download_import_cldr.py
index 6195d4a..3b21117 100755
--- a/scripts/download_import_cldr.py
+++ b/scripts/download_import_cldr.py
@@ -20,8 +20,8 @@ def main():
zip_path = os.path.join(cldr_path, FILENAME)
if not os.path.isfile(zip_path):
- with open(zip_path) as f:
- conn = urllib.open(URL)
+ with open(zip_path, 'wb') as f:
+ conn = urllib.urlopen(URL)
while True:
buf = conn.read(BLKSIZE)
if not buf: