replace iteritems with items to ensure python3 compatibility

This commit is contained in:
Berislav Lopac 2016-11-14 10:24:07 +00:00 committed by Matt Clay
parent 3a26a1bfcc
commit 7f351a46e5

View file

@ -97,7 +97,7 @@ def is_present(name):
def fix_case(name): def fix_case(name):
"""locale -a might return the encoding in either lower or upper case. """locale -a might return the encoding in either lower or upper case.
Passing through this function makes them uniform for comparisons.""" Passing through this function makes them uniform for comparisons."""
for s, r in LOCALE_NORMALIZATION.iteritems(): for s, r in LOCALE_NORMALIZATION.items():
name = name.replace(s, r) name = name.replace(s, r)
return name return name