Skip to content

Commit 4efb5d0

Browse files
committed
remove check for case handled in sub-function
1 parent 2742e7e commit 4efb5d0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Python/ast.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,9 +1347,6 @@ ast_for_atom(struct compiling *c, const node *n)
13471347
if (TYPE(ch) == yield_expr)
13481348
return ast_for_expr(c, ch);
13491349

1350-
if ((NCH(ch) > 1) && (TYPE(CHILD(ch, 1)) == gen_for))
1351-
return ast_for_genexp(c, ch);
1352-
13531350
return ast_for_testlist_gexp(c, ch);
13541351
case LSQB: /* list (or list comprehension) */
13551352
ch = CHILD(n, 1);

0 commit comments

Comments
 (0)