From 0dd8062b792a7d21e9e5c2f0d48c369796511602 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 10 Nov 2020 12:23:43 +0200 Subject: Download CLDR 40.0 --- scripts/download_import_cldr.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/download_import_cldr.py b/scripts/download_import_cldr.py index 805772a..c0ec5b7 100755 --- a/scripts/download_import_cldr.py +++ b/scripts/download_import_cldr.py @@ -13,9 +13,10 @@ except ImportError: from urllib import urlretrieve -URL = 'http://unicode.org/Public/cldr/37/core.zip' -FILENAME = 'cldr-core-37.zip' -FILESUM = 'ba93f5ba256a61a6f8253397c6c4b1a9b9e77531f013cc7ffa7977b5f7e4da57' +URL = 'http://unicode.org/Public/cldr/40/cldr-common-40.0.zip' +FILENAME = 'cldr-common-40.0.zip' +# Via https://unicode.org/Public/cldr/40/hashes/SHASUM512.txt +FILESUM = 'b45ea381002210cf5963a2ba52fa45ee4e9b1e80ae1180bcecf61f431d64e4e0faba700b3d56a96a33355deab3abdb8bcbae9222b60a8ca85536476718175645' BLKSIZE = 131072 @@ -53,7 +54,7 @@ def is_good_file(filename): if not os.path.isfile(filename): log('Local copy \'%s\' not found', filename) return False - h = hashlib.sha256() + h = hashlib.sha512() with open(filename, 'rb') as f: while 1: blk = f.read(BLKSIZE) -- cgit v1.2.1