[Python-checkins] cpython: remove duplicated check for fractions and complex numbers (closes #26076)

benjamin.peterson python-checkins at python.org
Fri Mar 25 01:43:55 EDT 2016


https://hg.python.org/cpython/rev/f0acce8022d1
changeset:   100732:f0acce8022d1
user:        Benjamin Peterson <benjamin at python.org>
date:        Thu Mar 24 22:43:23 2016 -0700
summary:
  remove duplicated check for fractions and complex numbers (closes #26076)

Patch by Oren Milman.

files:
  Parser/tokenizer.c |  4 ----
  1 files changed, 0 insertions(+), 4 deletions(-)


diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -1587,10 +1587,6 @@
         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 */

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list