[ldapuser2ldapfeed] .values -> .iteritems (closes #2542872) stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 18 Dec 2012 10:42:11 +0100
branchstable
changeset 8635 c261d9465e65
parent 8634 22f1800ca6a9
child 8636 c491f945f878
[ldapuser2ldapfeed] .values -> .iteritems (closes #2542872)
misc/scripts/ldapuser2ldapfeed.py
--- a/misc/scripts/ldapuser2ldapfeed.py	Mon Dec 17 14:40:03 2012 +0100
+++ b/misc/scripts/ldapuser2ldapfeed.py	Tue Dec 18 10:42:11 2012 +0100
@@ -80,7 +80,7 @@
     pprint(duplicates)
 
 print len(todelete), 'entities will be deleted'
-for etype, entities in todelete.values():
+for etype, entities in todelete.iteritems():
     print 'deleting', etype, [e.login for e in entities]
     system_source.delete_info_multi(session, entities, source_name)