[pypy-commit] pypy default: Python 2.5 compat (not completely sure about this one, but at least
arigo
noreply at buildbot.pypy.org
Fri Aug 24 20:32:18 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
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),
More information about the pypy-commit
mailing list