[Checkins] SVN: Products.ExternalEditor/trunk/ExternalEditor.py - Fix an obvious mistake here. 'self' is the iterator, returning iter(self) would cause a infinite recursion.

Sidnei da Silva sidnei at enfoldsystems.com
Tue Dec 26 17:12:17 EST 2006


Log message for revision 71655:
  - Fix an obvious mistake here. 'self' is the iterator, returning iter(self) would cause a infinite recursion.

Changed:
  U   Products.ExternalEditor/trunk/ExternalEditor.py

-=-
Modified: Products.ExternalEditor/trunk/ExternalEditor.py
===================================================================
--- Products.ExternalEditor/trunk/ExternalEditor.py	2006-12-26 20:42:55 UTC (rev 71654)
+++ Products.ExternalEditor/trunk/ExternalEditor.py	2006-12-26 22:12:16 UTC (rev 71655)
@@ -50,7 +50,7 @@
         self.data = data
 
     def __iter__(self):
-        return iter(self)
+        return self
 
     def next(self):
         if self.data is None:



More information about the Checkins mailing list