Author: Alex Gaynor <[email protected]>
Branch: 
Changeset: r62713:f0ee5d5278eb
Date: 2013-03-23 16:01 -0700
http://bitbucket.org/pypy/pypy/changeset/f0ee5d5278eb/

Log:    bad fijal, fix total nonsense

diff --git a/pypy/objspace/std/boolobject.py b/pypy/objspace/std/boolobject.py
--- a/pypy/objspace/std/boolobject.py
+++ b/pypy/objspace/std/boolobject.py
@@ -6,6 +6,7 @@
 from pypy.objspace.std.register_all import register_all
 from pypy.objspace.std.intobject import W_IntObject
 
+
 class W_BoolObject(W_Object):
     from pypy.objspace.std.booltype import bool_typedef as typedef
     _immutable_fields_ = ['boolval']
@@ -37,7 +38,7 @@
         return float(self.boolval)
 
     def int(self, space):
-        return self
+        return space.newint(int(self.boolval))
 
 registerimplementation(W_BoolObject)
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to