Author: Ronan Lamy <ronan.l...@gmail.com>
Branch: less-stringly-ops
Changeset: r66242:df03b38e6a11
Date: 2013-05-05 17:28 +0100
http://bitbucket.org/pypy/pypy/changeset/df03b38e6a11/

Log:    Remove redundant space.is_true() around functions that always return
        a bool

diff --git a/rpython/flowspace/objspace.py b/rpython/flowspace/objspace.py
--- a/rpython/flowspace/objspace.py
+++ b/rpython/flowspace/objspace.py
@@ -90,7 +90,7 @@
         return build_flow(func, self)
 
     def is_w(self, w_one, w_two):
-        return self.frame.guessbool(self.is_true(self.is_(w_one, w_two)))
+        return self.frame.guessbool(self.is_(w_one, w_two))
 
     is_ = None     # real version added by add_operations()
     id  = None     # real version added by add_operations()
@@ -133,7 +133,7 @@
         return FSException(w_type, w_value)
 
     def exception_issubclass_w(self, w_cls1, w_cls2):
-        return self.frame.guessbool(self.is_true(self.issubtype(w_cls1, 
w_cls2)))
+        return self.frame.guessbool(self.issubtype(w_cls1, w_cls2))
 
     def exception_match(self, w_exc_type, w_check_class):
         """Checks if the given exception type matches 'w_check_class'."""
@@ -264,7 +264,7 @@
         return self.frame.do_op(op.getattr(w_obj, w_name))
 
     def isinstance_w(self, w_obj, w_type):
-        return self.frame.guessbool(self.is_true(self.isinstance(w_obj, 
w_type)))
+        return self.frame.guessbool(self.isinstance(w_obj, w_type))
 
     def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
         try:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to