From 7f351a46e5506631d522c0495e1a0c4b345030f6 Mon Sep 17 00:00:00 2001 From: Berislav Lopac Date: Mon, 14 Nov 2016 10:24:07 +0000 Subject: [PATCH] replace iteritems with items to ensure python3 compatibility --- lib/ansible/modules/extras/system/locale_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/locale_gen.py b/lib/ansible/modules/extras/system/locale_gen.py index 7dbb9d5e96..62626e8587 100644 --- a/lib/ansible/modules/extras/system/locale_gen.py +++ b/lib/ansible/modules/extras/system/locale_gen.py @@ -97,7 +97,7 @@ def is_present(name): def fix_case(name): """locale -a might return the encoding in either lower or upper case. 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) return name