summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2009-10-18 14:25:35 (GMT)
committerSkip Montanaro <skip@pobox.com>2009-10-18 14:25:35 (GMT)
commitba1e0f46ab5a83be1a367b0eadb2f783e06228b3 (patch)
treedd688b778427cfdd6e4786322fd6ede99fd6bfbb /Parser
parent6ead552b47ecc4e7d85a03b3b662c6d46e59bec3 (diff)
downloadcpython-ba1e0f46ab5a83be1a367b0eadb2f783e06228b3.zip
cpython-ba1e0f46ab5a83be1a367b0eadb2f783e06228b3.tar.gz
cpython-ba1e0f46ab5a83be1a367b0eadb2f783e06228b3.tar.bz2
Issue 7147 - remove ability to attempt to build Python without complex number support (was broken anyway)
Diffstat (limited to 'Parser')
-rw-r--r--Parser/tokenizer.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index cc142a7..daf18dc 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -1383,10 +1383,8 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
c = tok_nextc(tok);
if (c == '.')
goto fraction;
-#ifndef WITHOUT_COMPLEX
if (c == 'j' || c == 'J')
goto imaginary;
-#endif
if (c == 'x' || c == 'X') {
/* Hex */
@@ -1438,10 +1436,8 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
goto fraction;
else if (c == 'e' || c == 'E')
goto exponent;
-#ifndef WITHOUT_COMPLEX
else if (c == 'j' || c == 'J')
goto imaginary;
-#endif
else if (nonzero) {
tok->done = E_TOKEN;
tok_backup(tok, c);
@@ -1478,12 +1474,10 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
c = tok_nextc(tok);
} while (isdigit(c));
}
-#ifndef WITHOUT_COMPLEX
if (c == 'j' || c == 'J')
/* Imaginary part */
imaginary:
c = tok_nextc(tok);
-#endif
}
}
tok_backup(tok, c);