Issue #3360: Fix incorrect parsing of "020000000000.0".
diff --git a/Python/ast.c b/Python/ast.c
index dc22478..b6a5e0f 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -3139,16 +3139,7 @@
#endif
if (*end == 'l' || *end == 'L')
return PyLong_FromString((char *)s, (char **)0, 0);
- if (s[0] == '0') {
- x = (long) PyOS_strtoul((char *)s, (char **)&end, 0);
- if (x < 0 && errno == 0) {
- return PyLong_FromString((char *)s,
- (char **)0,
- 0);
- }
- }
- else
- x = PyOS_strtol((char *)s, (char **)&end, 0);
+ x = PyOS_strtol((char *)s, (char **)&end, 0);
if (*end == '\0') {
if (errno != 0)
return PyLong_FromString((char *)s, (char **)0, 0);