[Python-checkins] r87987 - peps/trunk/pep-3333.txt

phillip.eby python-checkins at python.org
Thu Jan 13 16:51:34 CET 2011


Author: phillip.eby
Date: Thu Jan 13 16:51:34 2011
New Revision: 87987

Log:
Whoops, missed a Python 3 change (__next__).


Modified:
   peps/trunk/pep-3333.txt

Modified: peps/trunk/pep-3333.txt
==============================================================================
--- peps/trunk/pep-3333.txt	(original)
+++ peps/trunk/pep-3333.txt	Thu Jan 13 16:51:34 2011
@@ -417,13 +417,13 @@
         def __init__(self, result, transform_ok):
             if hasattr(result, 'close'):
                 self.close = result.close
-            self._next = iter(result).next
+            self._next = iter(result).__next__
             self.transform_ok = transform_ok
 
         def __iter__(self):
             return self
 
-        def next(self):
+        def __next__(self):
             if self.transform_ok:
                 return piglatin(self._next())   # call must be byte-safe on Py3
             else:


More information about the Python-checkins mailing list