Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r62705:97fea5c972a2
Date: 2013-03-23 12:35 -0700
http://bitbucket.org/pypy/pypy/changeset/97fea5c972a2/

Log:    fix translation

diff --git a/pypy/objspace/std/intobject.py b/pypy/objspace/std/intobject.py
--- a/pypy/objspace/std/intobject.py
+++ b/pypy/objspace/std/intobject.py
@@ -49,8 +49,8 @@
         return float(self.intval)
 
     def int(self, space):
-        if type(self) != W_IntObject and space.is_overloaded(self, space.w_int,
-                                                             '__int__'):
+        if (type(self) is not W_IntObject and
+            space.is_overloaded(self, space.w_int, '__int__')):
             return W_Object.int(self, space)
         if space.is_w(space.type(self), space.w_int):
             return self
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to