]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
remove duplicated check for fractions and complex numbers (closes #26076)
authorBenjamin Peterson <benjamin@python.org>
Fri, 25 Mar 2016 05:43:23 +0000 (22:43 -0700)
committerBenjamin Peterson <benjamin@python.org>
Fri, 25 Mar 2016 05:43:23 +0000 (22:43 -0700)
Patch by Oren Milman.

Parser/tokenizer.c

index c653121706b9ba116eb6af8cd6a52801eb5abb63..006ad9ccc1b54ecf569f967fe0fd5f8803039652 100644 (file)
@@ -1587,10 +1587,6 @@ tok_get(struct tok_state *tok, char **p_start, char **p_end)
         if (c == '0') {
             /* Hex, octal or binary -- maybe. */
             c = tok_nextc(tok);
-            if (c == '.')
-                goto fraction;
-            if (c == 'j' || c == 'J')
-                goto imaginary;
             if (c == 'x' || c == 'X') {
 
                 /* Hex */