diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-05-16 13:44:45 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-05-16 13:44:45 (GMT) |
commit | de12b79cd65ddde79fdaf794b58cd184f345a884 (patch) | |
tree | 02b0890752f2a2ec66ce8d6049ad0c4eaba1d8df /Modules | |
parent | 8de32d906f3cdcffa088fc786eefa8f4e7bce785 (diff) | |
download | cpython-de12b79cd65ddde79fdaf794b58cd184f345a884.zip cpython-de12b79cd65ddde79fdaf794b58cd184f345a884.tar.gz cpython-de12b79cd65ddde79fdaf794b58cd184f345a884.tar.bz2 |
allow test node after ** in calls (closes #24176)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/parsermodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 876e57d..2a16dba 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -2871,7 +2871,7 @@ validate_argument(node *tree) if (res) { if (TYPE(CHILD(tree, 0)) == DOUBLESTAR) { - res = validate_expr(CHILD(tree, 1)); + res = validate_test(CHILD(tree, 1)); } else if (nch == 1) { res = validate_test_or_star_expr(CHILD(tree, 0)); |