summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Python/compile.c b/Python/compile.c
index c6c3394..d238a30 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1084,11 +1084,8 @@ parsenumber(struct compiling *co, char *s)
else
x = PyOS_strtol(s, &end, 0);
if (*end == '\0') {
- if (errno != 0) {
- com_error(co, PyExc_OverflowError,
- "integer literal too large");
- return NULL;
- }
+ if (errno != 0)
+ return PyLong_FromString(s, (char **)0, 0);
return PyInt_FromLong(x);
}
/* XXX Huge floats may silently fail */