server/test/unittest_ldapsource.py
changeset 10662 10942ed172de
parent 10651 9ca33768473c
child 10768 99689a5862ea
--- a/server/test/unittest_ldapsource.py	Tue Sep 08 18:04:57 2015 +0200
+++ b/server/test/unittest_ldapsource.py	Tue Sep 15 16:15:03 2015 +0200
@@ -153,7 +153,7 @@
         add an LDAP entity
         """
         modcmd = ['dn: %s'%dn, 'changetype: add']
-        for key, values in mods.iteritems():
+        for key, values in mods.items():
             if isinstance(values, string_types):
                 values = [values]
             for value in values:
@@ -172,7 +172,7 @@
         modify one or more attributes of an LDAP entity
         """
         modcmd = ['dn: %s'%dn, 'changetype: modify']
-        for (kind, key), values in mods.iteritems():
+        for (kind, key), values in mods.items():
             modcmd.append('%s: %s' % (kind, key))
             if isinstance(values, string_types):
                 values = [values]