Commits

Philip Jenvey committed 28b4dbf

2to3

Comments (0)

Files changed (2)

lib_pypy/ctypes_config_cache/dumpcache.py

     g = open(filename, 'w')
     print >> g, '''\
 import sys
-_size = 32 if sys.maxint <= 2**32 else 64
+_size = 32 if sys.maxsize <= 2**32 else 64
 # XXX relative import, should be removed together with
 # XXX the relative imports done e.g. by lib_pypy/pypy_test/test_hashlib
 _mod = __import__("_%s_%%s_" %% (_size,),

pypy/module/_random/test/test_random.py

         rnd = _random.Random()
         rnd.seed()
         different_nums = []
-        mask = sys.maxint * 2 + 1
+        mask = sys.maxsize * 2 + 1
         for obj in ["spam and eggs", 3.14, 1+2j, 'a', tuple('abc')]:
             nums = []
             for o in [obj, hash(obj) & mask, -(hash(obj) & mask)]: