Author: Philip Jenvey <pjen...@underboss.org> Branch: py3k Changeset: r57995:10baee3314ed Date: 2012-10-09 18:17 -0700 http://bitbucket.org/pypy/pypy/changeset/10baee3314ed/
Log: switch to builtin next 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 @@ -92,7 +92,7 @@ import itertools r = itertools.repeat('a', 15) - r.next() + next(r) raises(TypeError, "len(itertools.repeat('xkcd'))") def test_takewhile(self): @@ -618,12 +618,12 @@ def test_tee_bug1(self): import itertools a, b = itertools.tee('abcde') - x = a.next() + x = next(a) assert x == 'a' c, d = itertools.tee(a) - x = c.next() + x = next(c) assert x == 'b' - x = d.next() + x = next(d) assert x == 'b' _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit