Skip to content

Commit b08d3f7

Browse files
gvanrossummiss-islington
authored andcommitted
The comment in ast_for_namedexpr shouldn't include if_stmt (GH-17586)
Automerge-Triggered-By: @gvanrossum
1 parent 39afa2d commit b08d3f7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Python/ast.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,9 +1935,7 @@ ast_for_decorated(struct compiling *c, const node *n)
19351935
static expr_ty
19361936
ast_for_namedexpr(struct compiling *c, const node *n)
19371937
{
1938-
/* if_stmt: 'if' namedexpr_test ':' suite ('elif' namedexpr_test ':' suite)*
1939-
['else' ':' suite]
1940-
namedexpr_test: test [':=' test]
1938+
/* namedexpr_test: test [':=' test]
19411939
argument: ( test [comp_for] |
19421940
test ':=' test |
19431941
test '=' test |

0 commit comments

Comments
 (0)