Author: Benjamin Peterson <[email protected]>
Branch: 
Changeset: r44413:01667caf098e
Date: 2011-05-24 15:42 -0500
http://bitbucket.org/pypy/pypy/changeset/01667caf098e/

Log:    be consistent about space vs. self

diff --git a/pypy/objspace/descroperation.py b/pypy/objspace/descroperation.py
--- a/pypy/objspace/descroperation.py
+++ b/pypy/objspace/descroperation.py
@@ -230,11 +230,11 @@
             msg = "%s should return bool or integer" % (method,)
             raise OperationError(space.w_TypeError, space.wrap(msg))
 
-    def nonzero(self, w_obj):
-        if self.is_true(w_obj):
-            return self.w_True
+    def nonzero(space, w_obj):
+        if space.is_true(w_obj):
+            return space.w_True
         else:
-            return self.w_False
+            return space.w_False
 
     def len(space, w_obj):
         w_descr = space.lookup(w_obj, '__len__')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to