[pypy-commit] pypy py3k: Replace next methods by __next__ in Repeater classes.
wpq
noreply at buildbot.pypy.org
Tue Mar 13 18:05:55 CET 2012
Author: Alexis Daboville <alexis.daboville at gmail.com>
Branch: py3k
Changeset: r53445:940e9fbc8ab7
Date: 2012-03-13 09:42 +0000
http://bitbucket.org/pypy/pypy/changeset/940e9fbc8ab7/
Log: Replace next methods by __next__ in Repeater classes.
Fix:
* http://buildbot.pypy.org/summary/longrepr?testname=AppTestItertool
s27.%28%29.test_izip_longest3&builder=own-
linux-x86-32&build=2035&mod=module.itertools.test.test_itertools
* http://buildbot.pypy.org/summary/longrepr?testname=AppTestItertools2
6.%28%29.test_izip_longest2&builder=own-
linux-x86-32&build=2035&mod=module.itertools.test.test_itertools
diff --git a/pypy/module/itertools/test/test_itertools.py b/pypy/module/itertools/test/test_itertools.py
--- a/pypy/module/itertools/test/test_itertools.py
+++ b/pypy/module/itertools/test/test_itertools.py
@@ -758,7 +758,7 @@
self.e = e
def __iter__(self): # its iterator is itself
return self
- def next(self):
+ def __next__(self):
if self.t > 0:
self.t -= 1
return self.o
@@ -949,7 +949,7 @@
self.e = e
def __iter__(self): # its iterator is itself
return self
- def next(self):
+ def __next__(self):
if self.t > 0:
self.t -= 1
return self.o
More information about the pypy-commit
mailing list