]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fixed the cldr download and import
authorArmin Ronacher <armin.ronacher@active-4.com>
Thu, 4 Jul 2013 10:19:54 +0000 (12:19 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Thu, 4 Jul 2013 10:19:54 +0000 (12:19 +0200)
scripts/download_import_cldr.py

index 6195d4ad5c944d8ad0112282911a20fac8b40d7d..3b2111751e2a4b0b0176717f74ba30d773ad0e8d 100755 (executable)
@@ -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: