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 miss-islington committed Dec 15, 2019
1 parent 39afa2d commit b08d3f7
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 b08d3f7

Please sign in to comment.