summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-01-26 18:59:07 (GMT)
committerGuido van Rossum <guido@python.org>1996-01-26 18:59:07 (GMT)
commitfaa436c70bfd3279c2b2391f7f2a3069984dd48a (patch)
treec1023a9863eb28bb08d92f6cd89de9ad6944b3cd /Parser
parentefa3143abdd4fee35415f06edccaa373dc9fb60e (diff)
downloadcpython-faa436c70bfd3279c2b2391f7f2a3069984dd48a.zip
cpython-faa436c70bfd3279c2b2391f7f2a3069984dd48a.tar.gz
cpython-faa436c70bfd3279c2b2391f7f2a3069984dd48a.tar.bz2
use only j for imaginary constants
Diffstat (limited to 'Parser')
-rw-r--r--Parser/tokenizer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index ecc32d1..942072d 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -573,7 +573,7 @@ tok_get(tok, p_start, p_end)
if (c == '.')
goto fraction;
#ifndef WITHOUT_COMPLEX
- if (c == 'i' || c == 'I' || c == 'j' || c == 'J')
+ if (c == 'j' || c == 'J')
goto imaginary;
#endif
if (c == 'x' || c == 'X') {
@@ -622,7 +622,7 @@ tok_get(tok, p_start, p_end)
}
}
#ifndef WITHOUT_COMPLEX
- if (c == 'i' || c == 'I' || c == 'j' || c == 'J')
+ if (c == 'j' || c == 'J')
/* Imaginary part */
imaginary:
c = tok_nextc(tok);