1. Pypy
  2. Untitled project
  3. pypy

Source

pypy / lib_pypy / _struct.py

Diff from to

File lib_pypy/_struct.py

  • Ignore whitespace
     return bytes(res)
 
 def pack_signed_int(number,size,le):
-    if not isinstance(number, (int,long)):
+    if not isinstance(number, int):
         raise StructError("argument for i,I,l,L,q,Q,h,H must be integer")
     if  number > 2**(8*size-1)-1 or number < -1*2**(8*size-1):
         raise OverflowError("Number:%i too large to convert" % number)
     return pack_int(number,size,le)
 
 def pack_unsigned_int(number,size,le):
-    if not isinstance(number, (int,long)):
+    if not isinstance(number, int):
         raise StructError("argument for i,I,l,L,q,Q,h,H must be integer")
     if number < 0:
         raise TypeError("can't convert negative long to unsigned")