Mercurial > cpython-lru_cache-weakref
diff Modules/parsermodule.c @ 39783:7a0ad110e91e
Patch #1550786: ellipsis literal.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Wed, 06 Sep 2006 07:06:08 +0000 |
| parents | c94f37054f19 |
| children | 1cce0526d9b0 |
line wrap: on
line diff
--- a/Modules/parsermodule.c Wed Sep 06 06:51:57 2006 +0000 +++ b/Modules/parsermodule.c Wed Sep 06 07:06:08 2006 +0000 @@ -2385,6 +2385,11 @@ 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;
