diff options
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c index 6560026109..e10e63f539 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -3163,7 +3163,12 @@ ast_for_expr_stmt(struct compiling *c, const node *n) } else { ch = CHILD(ann, 3); - expr3 = ast_for_expr(c, ch); + if (TYPE(ch) == testlist) { + expr3 = ast_for_testlist(c, ch); + } + else { + expr3 = ast_for_expr(c, ch); + } if (!expr3) { return NULL; } |