summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-09-06 07:06:08 (GMT)
committerGeorg Brandl <georg@python.org>2006-09-06 07:06:08 (GMT)
commit52318d6215f9f9626d38a9b81b52d411dbbdb36a (patch)
tree72563f6321f9265fb9d77702ee729e68048bdd07 /Modules
parent7cae87ca7b0a3a7ce497cbd335c8ec82fe680476 (diff)
downloadcpython-52318d6215f9f9626d38a9b81b52d411dbbdb36a.zip
cpython-52318d6215f9f9626d38a9b81b52d411dbbdb36a.tar.gz
cpython-52318d6215f9f9626d38a9b81b52d411dbbdb36a.tar.bz2
Patch #1550786: ellipsis literal.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/parsermodule.c5
1 files changed, 5 insertions, 0 deletions
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 @@ validate_atom(node *tree)
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;