summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-02-17 16:48:58 +0100
committerMartin Basti <mbasti@redhat.com>2016-02-23 17:14:33 +0100
commit697072cac9d94ebd006d6a0f595d7956d38d58b9 (patch)
tree37128ec191d093b7879ac1e1a15a868917687dcb /ipapython
parentddda062d58fd9c3c6b4edbea0afb236fc26024ba (diff)
downloadfreeipa-697072cac9d94ebd006d6a0f595d7956d38d58b9.tar.gz
freeipa-697072cac9d94ebd006d6a0f595d7956d38d58b9.tar.xz
freeipa-697072cac9d94ebd006d6a0f595d7956d38d58b9.zip
Py3: do not use dict.iteritems()
Py3 does not support iter* methods, this commit replaces 2 occurencies of iteritems() to items(). The dictionaries there are not big, this is sufficient we do not need to use six. https://fedorahosted.org/freeipa/ticket/5623 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/install/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipapython/install/core.py b/ipapython/install/core.py
index f8cf07dc1..9582852b8 100644
--- a/ipapython/install/core.py
+++ b/ipapython/install/core.py
@@ -191,7 +191,7 @@ class Configurable(six.with_metaclass(abc.ABCMeta, object)):
for owner_cls in cls.__mro__:
result = []
- for name, prop_cls in owner_cls.__dict__.iteritems():
+ for name, prop_cls in owner_cls.__dict__.items():
if name in seen:
continue
seen.add(name)
@@ -514,7 +514,7 @@ class Composite(Configurable):
for owner_cls in cls.__mro__:
result = []
- for name, comp_cls in owner_cls.__dict__.iteritems():
+ for name, comp_cls in owner_cls.__dict__.items():
if name in seen:
continue
seen.add(name)