Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r89981:92da56b2d18e
Date: 2017-02-06 19:39 +0100
http://bitbucket.org/pypy/pypy/changeset/92da56b2d18e/
Log: fix OrderedDict.popitem()
diff --git a/lib_pypy/_pypy_collections.py b/lib_pypy/_pypy_collections.py
--- a/lib_pypy/_pypy_collections.py
+++ b/lib_pypy/_pypy_collections.py
@@ -28,7 +28,7 @@
else:
it = dict.__iter__(self)
try:
- k = it.next()
+ k = next(it)
except StopIteration:
raise KeyError('dictionary is empty')
return (k, self.pop(k))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit