Mercurial > cpython-lru_cache-weakref
diff Modules/parsermodule.c @ 76824:2b1cc84bf1d9 3.2
Issue #14741: Fix missing support for ellipsis in parser module.
| author | Mark Dickinson <mdickinson@enthought.com> |
|---|---|
| date | Mon, 07 May 2012 17:24:04 +0100 |
| parents | 129289144dfb |
| children | 91884d04de06 d50577c5711b |
line wrap: on
line diff
--- a/Modules/parsermodule.c Mon May 07 16:34:34 2012 +0100 +++ b/Modules/parsermodule.c Mon May 07 17:24:04 2012 +0100 @@ -2389,17 +2389,13 @@ break; case NAME: case NUMBER: + case ELLIPSIS: res = (nch == 1); break; case STRING: for (pos = 1; res && (pos < nch); ++pos) res = validate_ntype(CHILD(tree, pos), STRING); break; - case DOT: - res = (nch == 3 && - validate_ntype(CHILD(tree, 1), DOT) && - validate_ntype(CHILD(tree, 2), DOT)); - break; default: res = 0; break;
