[pypy-commit] pypy list-strategies: no needed anymore

l.diekmann noreply at buildbot.pypy.org
Fri Sep 23 13:14:54 CEST 2011


Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: list-strategies
Changeset: r47525:626c4de24a90
Date: 2011-08-22 17:02 +0200
http://bitbucket.org/pypy/pypy/changeset/626c4de24a90/

Log:	no needed anymore

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
@@ -946,19 +946,6 @@
             return space.w_False
         i += 1
     return space.w_True
-    items1_w = w_list1.getitems()
-    items2_w = w_list2.getitems()
-    return equal_wrappeditems(space, items1_w, items2_w)
-
-def equal_wrappeditems(space, items1_w, items2_w):
-    if len(items1_w) != len(items2_w):
-        return space.w_False
-    i = 0
-    while i < len(items1_w) and i < len(items2_w):
-        if not space.eq_w(items1_w[i], items2_w[i]):
-            return space.w_False
-        i += 1
-    return space.w_True
 
 def lessthan_unwrappeditems(space, items1_w, items2_w):
     # needs to be safe against eq_w() mutating the w_lists behind our back


More information about the pypy-commit mailing list