[pypy-commit] pypy default: Fix for my last commit (descroperation tests passed, so it's not totally my fault).

alex_gaynor noreply at buildbot.pypy.org
Sat May 21 06:45:00 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r44340:cc7986430401
Date: 2011-05-20 23:55 -0500
http://bitbucket.org/pypy/pypy/changeset/cc7986430401/

Log:	Fix for my last commit (descroperation tests passed, so it's not
	totally my fault).

diff --git a/pypy/objspace/descroperation.py b/pypy/objspace/descroperation.py
--- a/pypy/objspace/descroperation.py
+++ b/pypy/objspace/descroperation.py
@@ -376,9 +376,9 @@
         w_descr = space.lookup(w_container, '__contains__')
         if w_descr is not None:
             return space.get_and_call_function(w_descr, w_container, w_item)
-        return self._contains(w_container, w_item)
+        return space._contains(w_container, w_item)
 
-    def _contains(self, w_container, w_item):
+    def _contains(space, w_container, w_item):
         w_iter = space.iter(w_container)
         while 1:
             try:


More information about the pypy-commit mailing list