diff options
author | Skip Montanaro <skip@pobox.com> | 2009-10-18 14:25:35 +0000 |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2009-10-18 14:25:35 +0000 |
commit | 94be56fe981742b8657e2f07ecb86b5aca70711c (patch) | |
tree | 3ee631ede5035259c65fedd9ed97a23fb2ff9974 /Python/ast.c | |
parent | ea3bb7071bfdeac619740a07803873dac6d31b03 (diff) | |
download | cpython-94be56fe981742b8657e2f07ecb86b5aca70711c.tar.gz |
Issue 7147 - remove ability to attempt to build Python without complex number support (was broken anyway)
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/ast.c b/Python/ast.c index 8a35a1206f..c3edea3534 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -3177,17 +3177,13 @@ parsenumber(struct compiling *c, const char *s) const char *end; long x; double dx; -#ifndef WITHOUT_COMPLEX Py_complex compl; int imflag; -#endif assert(s != NULL); errno = 0; end = s + strlen(s) - 1; -#ifndef WITHOUT_COMPLEX imflag = *end == 'j' || *end == 'J'; -#endif if (s[0] == '0') { x = (long) PyOS_strtoul((char *)s, (char **)&end, 0); if (x < 0 && errno == 0) { @@ -3204,7 +3200,6 @@ parsenumber(struct compiling *c, const char *s) return PyLong_FromLong(x); } /* XXX Huge floats may silently fail */ -#ifndef WITHOUT_COMPLEX if (imflag) { compl.real = 0.; compl.imag = PyOS_string_to_double(s, (char **)&end, NULL); @@ -3213,7 +3208,6 @@ parsenumber(struct compiling *c, const char *s) return PyComplex_FromCComplex(compl); } else -#endif { dx = PyOS_string_to_double(s, NULL, NULL); if (dx == -1.0 && PyErr_Occurred()) |