Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.6
Changeset: r69597:f63389a764ea
Date: 2014-03-01 23:18 -0500
http://bitbucket.org/pypy/pypy/changeset/f63389a764ea/
Log: sys.maxsize -> sys.maxint
diff --git a/pypy/objspace/std/formatting.py b/pypy/objspace/std/formatting.py
--- a/pypy/objspace/std/formatting.py
+++ b/pypy/objspace/std/formatting.py
@@ -218,7 +218,7 @@
self.peel_flags()
- self.width = self.peel_num('width', sys.maxsize)
+ self.width = self.peel_num('width', sys.maxint)
if self.width < 0:
# this can happen: '%*s' % (-5, "hi")
self.f_ljust = True
diff --git a/pypy/objspace/std/newformat.py b/pypy/objspace/std/newformat.py
--- a/pypy/objspace/std/newformat.py
+++ b/pypy/objspace/std/newformat.py
@@ -21,7 +21,7 @@
while i < end:
digit = ord(s[i]) - ord('0')
if 0 <= digit <= 9:
- if result > (sys.maxsize - digit) / 10:
+ if result > (sys.maxint - digit) / 10:
raise oefmt(space.w_ValueError,
"too many decimal digits in format string")
result = result * 10 + digit
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit