Commits

Armin Rigo committed bec3338

Translation fix.

  • Participants
  • Parent commits 754f3b7

Comments (0)

Files changed (1)

File pypy/objspace/std/intobject.py

 from pypy.objspace.std.noneobject import W_NoneObject
 from pypy.objspace.std.register_all import register_all
 from pypy.rlib import jit
-from pypy.rlib.rarithmetic import ovfcheck, LONG_BIT, r_uint
+from pypy.rlib.rarithmetic import ovfcheck, LONG_BIT, r_uint, is_valid_int
 from pypy.rlib.rbigint import rbigint
 
 """
     from pypy.objspace.std.inttype import int_typedef as typedef
 
     def __init__(w_self, intval):
-        assert type(intval) is int or type(intval) is long
+        assert is_valid_int(intval)
         w_self.intval = intval
 
     def __repr__(w_self):