diff options
author | Georg Brandl <georg@python.org> | 2008-05-16 17:02:34 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-16 17:02:34 (GMT) |
commit | bf82e374ee737992235cbe944c9ddbd58236a892 (patch) | |
tree | f8c8dccaa76d58f9cb7d8cc0abb1355be75ee369 /Tools/i18n/makelocalealias.py | |
parent | acbca71ea775fc488bead0876d0cdbd48670dcbc (diff) | |
download | cpython-bf82e374ee737992235cbe944c9ddbd58236a892.zip cpython-bf82e374ee737992235cbe944c9ddbd58236a892.tar.gz cpython-bf82e374ee737992235cbe944c9ddbd58236a892.tar.bz2 |
More 2to3 fixes in the Tools directory. Fixes #2893.
Diffstat (limited to 'Tools/i18n/makelocalealias.py')
-rw-r--r-- | Tools/i18n/makelocalealias.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Tools/i18n/makelocalealias.py b/Tools/i18n/makelocalealias.py index f97b80e..45876c1 100644 --- a/Tools/i18n/makelocalealias.py +++ b/Tools/i18n/makelocalealias.py @@ -45,18 +45,14 @@ def parse(filename): return data def pprint(data): - - items = data.items() - items.sort() - for k,v in items: + items = sorted(data.items()) + for k, v in items: print(' %-40s%r,' % ('%r:' % k, v)) def print_differences(data, olddata): - - items = olddata.items() - items.sort() + items = sorted(olddata.items()) for k, v in items: - if not data.has_key(k): + if k not in data: print('# removed %r' % k) elif olddata[k] != data[k]: print('# updated %r -> %r to %r' % \ |