From 0632ad9c4109deee20c2d110b8541c4907f3bc9d Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 4 Jul 2013 12:19:54 +0200 Subject: [PATCH] Fixed the cldr download and import --- scripts/download_import_cldr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/download_import_cldr.py b/scripts/download_import_cldr.py index 6195d4ad..3b211175 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: -- 2.47.3