]> granicus.if.org Git - python/commitdiff
use only j for imaginary constants
authorGuido van Rossum <guido@python.org>
Fri, 26 Jan 1996 18:59:07 +0000 (18:59 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 26 Jan 1996 18:59:07 +0000 (18:59 +0000)
Parser/tokenizer.c

index ecc32d1fd1a711ab88e83a39ad49ff7acd2dde12..942072dc1f0ee03d4e85f459c2e37c5202e27870 100644 (file)
@@ -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);