Author: Carl Friedrich Bolz <[email protected]>
Branch:
Changeset: r68712:85605d599503
Date: 2013-11-07 14:48 -0500
http://bitbucket.org/pypy/pypy/changeset/85605d599503/
Log: make Jeremy happy
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
@@ -1336,10 +1336,9 @@
l[index] = self.unwrap(w_item)
except IndexError:
raise
- return
-
- w_list.switch_to_object_strategy()
- w_list.setitem(index, w_item)
+ else:
+ w_list.switch_to_object_strategy()
+ w_list.setitem(index, w_item)
def setslice(self, w_list, start, step, slicelength, w_other):
assert slicelength >= 0
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit