Author: Philip Jenvey <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit