summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-06-03 07:34:20 (GMT)
committerGitHub <noreply@github.com>2019-06-03 07:34:20 (GMT)
commit8565f6b6db0fa9f65449b532a5056a98bad3dc37 (patch)
treeeeeed2b04e30d603a40efbeb8da748325f5f74c3 /Python/ast.c
parentd9677f36fe486e86bb86f2cd59cb7fc3804bdac1 (diff)
downloadcpython-8565f6b6db0fa9f65449b532a5056a98bad3dc37.zip
cpython-8565f6b6db0fa9f65449b532a5056a98bad3dc37.tar.gz
cpython-8565f6b6db0fa9f65449b532a5056a98bad3dc37.tar.bz2
bpo-35814: Allow unpacking in r.h.s of annotated assignment expressions (GH-13760)
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index b775522..df92429 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -3398,7 +3398,7 @@ ast_for_expr_stmt(struct compiling *c, const node *n)
}
else {
ch = CHILD(ann, 3);
- if (TYPE(ch) == testlist) {
+ if (TYPE(ch) == testlist_star_expr) {
expr3 = ast_for_testlist(c, ch);
}
else {