summaryrefslogtreecommitdiffstats
path: root/Modules/parsermodule.c
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2012-05-07 16:25:14 (GMT)
committerMark Dickinson <mdickinson@enthought.com>2012-05-07 16:25:14 (GMT)
commit943cab2fec8e7fb3232e72d9f1ca6535674e746a (patch)
tree94dc564794188e6c61b0bc9bf23c9dd322a14be3 /Modules/parsermodule.c
parent72f6095d4fc50c0e92ea0f88df898ffe67cdb67c (diff)
parentda029fb293d7b389ad54bd843966a266fb4de615 (diff)
downloadcpython-943cab2fec8e7fb3232e72d9f1ca6535674e746a.zip
cpython-943cab2fec8e7fb3232e72d9f1ca6535674e746a.tar.gz
cpython-943cab2fec8e7fb3232e72d9f1ca6535674e746a.tar.bz2
Issue #14741: Merge fix from 3.2.
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r--Modules/parsermodule.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index 994de49..b9c1201 100644
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -2419,17 +2419,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;