commit | 52318d6215f9f9626d38a9b81b52d411dbbdb36a | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Wed Sep 06 07:06:08 2006 +0000 |
committer | Georg Brandl <georg@python.org> | Wed Sep 06 07:06:08 2006 +0000 |
tree | 72563f6321f9265fb9d77702ee729e68048bdd07 | |
parent | 7cae87ca7b0a3a7ce497cbd335c8ec82fe680476 [diff] [blame] |
Patch #1550786: ellipsis literal.
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index c90d34d..74af7fe 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c
@@ -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;