The comment in ast_for_namedexpr shouldn't include if_stmt (GH-17586)

Automerge-Triggered-By: @gvanrossum
(cherry picked from commit b08d3f71be)

Co-authored-by: Guido van Rossum <guido@python.org>
This commit is contained in:
Miss Islington (bot) 2019-12-15 12:04:07 -08:00 committed by GitHub
parent 5c5d8f63d7
commit cd968dea28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -1935,9 +1935,7 @@ ast_for_decorated(struct compiling *c, const node *n)
static expr_ty
ast_for_namedexpr(struct compiling *c, const node *n)
{
/* if_stmt: 'if' namedexpr_test ':' suite ('elif' namedexpr_test ':' suite)*
['else' ':' suite]
namedexpr_test: test [':=' test]
/* namedexpr_test: test [':=' test]
argument: ( test [comp_for] |
test ':=' test |
test '=' test |