Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63926:28b4dbf82ddf
Date: 2013-05-08 11:11 -0700
http://bitbucket.org/pypy/pypy/changeset/28b4dbf82ddf/
Log: 2to3
diff --git a/lib_pypy/ctypes_config_cache/dumpcache.py
b/lib_pypy/ctypes_config_cache/dumpcache.py
--- a/lib_pypy/ctypes_config_cache/dumpcache.py
+++ b/lib_pypy/ctypes_config_cache/dumpcache.py
@@ -11,7 +11,7 @@
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,),
diff --git a/pypy/module/_random/test/test_random.py
b/pypy/module/_random/test/test_random.py
--- a/pypy/module/_random/test/test_random.py
+++ b/pypy/module/_random/test/test_random.py
@@ -46,7 +46,7 @@
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)]:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit