[pypy-commit] pypy list-strategies: fix nonsense
cfbolz
noreply at buildbot.pypy.org
Fri Sep 23 13:13:12 CEST 2011
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: list-strategies
Changeset: r47498:fdb21a0533f2
Date: 2011-04-12 15:12 +0200
http://bitbucket.org/pypy/pypy/changeset/fdb21a0533f2/
Log: fix nonsense
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
@@ -768,7 +768,7 @@
if isinstance(w_iterable, W_ListObject):
w_list.extend(w_iterable)
elif isinstance(w_iterable, W_TupleObject):
- w_list.extend(W_ListObject(space, w_iterable.wrappeditems[:])
+ w_list.extend(W_ListObject(space, w_iterable.wrappeditems[:]))
else:
_init_from_iterable(space, w_list, w_iterable)
@@ -783,8 +783,7 @@
if not e.match(space, space.w_StopIteration):
raise
break # done
- #items_w.append(w_item)
- w_list.append(w_item)
+ w_list.append(w_item)
def len__List(space, w_list):
result = w_list.length()
More information about the pypy-commit
mailing list