From: Armin Ronacher Date: Thu, 4 Jul 2013 10:19:54 +0000 (+0200) Subject: Fixed the cldr download and import X-Git-Tag: 1.0~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0632ad9c4109deee20c2d110b8541c4907f3bc9d;p=thirdparty%2Fbabel.git Fixed the cldr download and import --- 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: