Author: Alex Gaynor <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit