[Zope3-checkins] SVN: ldapauth/trunk/source.py Fix iterator method __iter__(self), return iter(self.keys())

Roger Ineichen roger at projekt01.ch
Wed Jul 21 19:46:55 EDT 2004


Log message for revision 26670:
  Fix iterator method __iter__(self), return iter(self.keys())


Changed:
  U   ldapauth/trunk/source.py


-=-
Modified: ldapauth/trunk/source.py
===================================================================
--- ldapauth/trunk/source.py	2004-07-21 22:56:27 UTC (rev 26669)
+++ ldapauth/trunk/source.py	2004-07-21 23:46:55 UTC (rev 26670)
@@ -81,7 +81,7 @@
         return logins
 
     def __iter__(self):
-        return self.keys()
+        return iter(self.keys())
 
     ### return a cached principal, if the principal is not in the cache
     ### then return None



More information about the Zope3-Checkins mailing list