[pypy-svn] r78231 - pypy/branch/fast-forward/pypy/module/__builtin__

afa at codespeak.net afa at codespeak.net
Sat Oct 23 00:08:36 CEST 2010


Author: afa
Date: Sat Oct 23 00:08:34 2010
New Revision: 78231

Modified:
   pypy/branch/fast-forward/pypy/module/__builtin__/interp_classobj.py
Log:
More fixes


Modified: pypy/branch/fast-forward/pypy/module/__builtin__/interp_classobj.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/__builtin__/interp_classobj.py	(original)
+++ pypy/branch/fast-forward/pypy/module/__builtin__/interp_classobj.py	Sat Oct 23 00:08:34 2010
@@ -604,7 +604,7 @@
         return w_ret
 
     def descr_int(self, space):
-        w_func = self.getattr(space, space.wrap('__int__'), False)
+        w_func = self.getattr(space, '__int__', False)
         if w_func is not None:
             return space.call_function(w_func)
 
@@ -619,7 +619,7 @@
                 space.wrap("__trunc__ returned non-Integral"))
 
     def descr_long(self, space):
-        w_func = self.getattr(space, space.wrap('__long__'), False)
+        w_func = self.getattr(space, '__long__', False)
         if w_func is not None:
             return space.call_function(w_func)
         return self.descr_int(space)



More information about the Pypy-commit mailing list