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>
This commit is contained in:
Martin Basti committed 2016-02-23 17:14:33 +01:00
1 parent ddda062d58
commit 697072cac9
1 file changed
+2 -2
+2 -2
View File
@@ -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)