mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #14741: Merge fix from 3.2.
This commit is contained in:
commit
943cab2fec
3 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue