Skip to content

Commit

Permalink
The comment in ast_for_namedexpr shouldn't include if_stmt (pythonGH-…
Browse files Browse the repository at this point in the history
…17586)

Automerge-Triggered-By: @gvanrossum
  • Loading branch information
gvanrossum authored and shihai1991 committed Jan 31, 2020
1 parent c80657a commit b1ad15d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Python/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down

0 comments on commit b1ad15d

Please sign in to comment.