Skip to content

Commit defa04e

Browse files
committed
star_expr now always has two nodes
1 parent 4905e80 commit defa04e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Python/ast.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,9 +1889,7 @@ ast_for_expr(struct compiling *c, const node *n)
18891889
break;
18901890

18911891
case star_expr:
1892-
if (TYPE(CHILD(n, 0)) == STAR)
1893-
return ast_for_starred(c, n);
1894-
/* Fall through to generic case. */
1892+
return ast_for_starred(c, n);
18951893
/* The next five cases all handle BinOps. The main body of code
18961894
is the same in each case, but the switch turned inside out to
18971895
reuse the code for each type of operator.

0 commit comments

Comments
 (0)