Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r56842:b21f47db0cb4
Date: 2012-08-24 20:32 +0200
http://bitbucket.org/pypy/pypy/changeset/b21f47db0cb4/

Log:    Python 2.5 compat (not completely sure about this one, but at least
        it imports again)

diff --git a/pypy/objspace/flow/operation.py b/pypy/objspace/flow/operation.py
--- a/pypy/objspace/flow/operation.py
+++ b/pypy/objspace/flow/operation.py
@@ -210,7 +210,7 @@
     ('coerce',          coerce),
     ('iter',            iter),
     ('next',            next),
-    ('next',            __builtin__.next),
+    ('next',            getattr(__builtin__, 'next', lambda x: x.__next__())),
     ('get',             get),
     ('set',             set),
     ('delete',          delete),
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to