Author: Benjamin Peterson <[email protected]>
Branch:
Changeset: r44414:19bf70a7d70c
Date: 2011-05-24 16:03 -0500
http://bitbucket.org/pypy/pypy/changeset/19bf70a7d70c/
Log: is_w should be used here
diff --git a/pypy/objspace/descroperation.py b/pypy/objspace/descroperation.py
--- a/pypy/objspace/descroperation.py
+++ b/pypy/objspace/descroperation.py
@@ -216,9 +216,9 @@
return True
w_res = space.get_and_call_function(w_descr, w_obj)
# more shortcuts for common cases
- if w_res is space.w_False:
+ if space.is_w(w_res, space.w_False):
return False
- if w_res is space.w_True:
+ if space.is_w(w_res, space.w_True):
return True
w_restype = space.type(w_res)
# Note there is no check for bool here because the only possible
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit