commit | e2a383d062434c05b73031f0da57fe82b9da8942 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Jan 15 16:59:06 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Jan 15 16:59:06 2007 +0000 |
tree | 1a6fb6b2c056a10ee227dbc75855b3fac6153414 | |
parent | fc7bb8c786fd9cb3b1ab84e1976620d0ab545777 [diff] [blame] |
Rip out 'long' and 'L'-suffixed integer literals. (Rough first cut.)
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 4c3c29e..84b7232 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c
@@ -1323,17 +1323,13 @@ return ERRORTOKEN; } } - if (c == 'l' || c == 'L') - c = tok_nextc(tok); } else { /* Decimal */ do { c = tok_nextc(tok); } while (isdigit(c)); - if (c == 'l' || c == 'L') - c = tok_nextc(tok); - else { + { /* Accept floating point numbers. */ if (c == '.') { fraction: