[pypy-commit] pypy stdlib-2.7.12: fix
pjenvey
pypy.commits at gmail.com
Sun Oct 9 01:23:23 EDT 2016
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: stdlib-2.7.12
Changeset: r87650:e36e9b7907f7
Date: 2016-10-08 22:20 -0700
http://bitbucket.org/pypy/pypy/changeset/e36e9b7907f7/
Log: fix
diff --git a/pypy/objspace/std/listobject.py b/pypy/objspace/std/listobject.py
--- a/pypy/objspace/std/listobject.py
+++ b/pypy/objspace/std/listobject.py
@@ -859,8 +859,9 @@
raise NotImplementedError
def extend(self, w_list, w_any):
+ space = self.space
if type(w_any) is W_ListObject or (isinstance(w_any, W_ListObject) and
- self.space._uses_list_iter(w_any)):
+ space._uses_list_iter(w_any)):
self._extend_from_list(w_list, w_any)
elif space.is_generator(w_any):
w_any.unpack_into_w(w_list)
More information about the pypy-commit
mailing list