Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r57789:8879a47cad40
Date: 2012-10-04 22:57 +0200
http://bitbucket.org/pypy/pypy/changeset/8879a47cad40/
Log: Fix error message for int('invalid'). Yes, CPython has a test for
it.
diff --git a/pypy/objspace/std/strutil.py b/pypy/objspace/std/strutil.py
--- a/pypy/objspace/std/strutil.py
+++ b/pypy/objspace/std/strutil.py
@@ -138,7 +138,7 @@
if (s.endswith(u'l') or s.endswith(u'L')) and base < 22:
# in base 22 and above, 'L' is a valid digit! try: long('L',22)
s = s[:-1]
- p = NumberStringParser(s, literal, base, u'long')
+ p = NumberStringParser(s, literal, base, u'int')
else:
p = parser
return parse_digit_string(p)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit