summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-05-16 13:44:45 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-05-16 13:44:45 (GMT)
commitde12b79cd65ddde79fdaf794b58cd184f345a884 (patch)
tree02b0890752f2a2ec66ce8d6049ad0c4eaba1d8df /Modules
parent8de32d906f3cdcffa088fc786eefa8f4e7bce785 (diff)
downloadcpython-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.c2
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));