diff options
author | David Drysdale <dmd@lurklurk.org> | 2015-09-16 14:47:44 +0100 |
---|---|---|
committer | David Drysdale <dmd@lurklurk.org> | 2015-09-16 14:47:44 +0100 |
commit | b8857d34737bb03d6cdd6bd0b6ef16d37aba96d2 (patch) | |
tree | cd0ed83ade25e69de189b8b39e2c8d0c3f773a7f /tools | |
parent | 391bbc912af8f10cbd7d4b14883263228cb9c26d (diff) |
Don't use dictionary comprehension
Dict comprehension needs Python >= 2.7
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/python/buildprefixdata.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/python/buildprefixdata.py b/tools/python/buildprefixdata.py index d98d7290..1bdc28d8 100755 --- a/tools/python/buildprefixdata.py +++ b/tools/python/buildprefixdata.py @@ -171,7 +171,9 @@ def output_prefixdata_code(prefixdata, outfilename, module_prefix, varprefix, pe for chunk_num in range(total_chunks): chunk_index = PREFIXDATA_CHUNK_SIZE * chunk_num chunk_keys = sorted_keys[chunk_index:chunk_index + PREFIXDATA_CHUNK_SIZE] - chunk_data = {key: prefixdata[key] for key in chunk_keys} + chunk_data = {} + for key in chunk_keys: + chunk_data[key] = prefixdata[key] chunk_file = os.path.join(outdirname, 'data%d.py' % chunk_num) chunk_longest = output_prefixdata_chunk( chunk_data, chunk_file, module_prefix, per_locale) |