summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2012-05-07 16:24:04 (GMT)
committerMark Dickinson <mdickinson@enthought.com>2012-05-07 16:24:04 (GMT)
commitda029fb293d7b389ad54bd843966a266fb4de615 (patch)
tree531ac06a99c2e235901d068b02b45f1c90b8529b /Modules
parent11c1dee183a39626a904f3f9e09b47dab3fd8117 (diff)
downloadcpython-da029fb293d7b389ad54bd843966a266fb4de615.zip
cpython-da029fb293d7b389ad54bd843966a266fb4de615.tar.gz
cpython-da029fb293d7b389ad54bd843966a266fb4de615.tar.bz2
Issue #14741: Fix missing support for ellipsis in parser module.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/parsermodule.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index 05861ed..c0633e3 100644
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -2389,17 +2389,13 @@ validate_atom(node *tree)
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;