Skip to content

Commit b6f0d05

Browse files
committed
remove casts
1 parent 4f09e61 commit b6f0d05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Python/ast.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,12 +2683,12 @@ ast_for_exec_stmt(struct compiling *c, const node *n)
26832683
if (expr1->kind == Tuple_kind && n_children < 4 &&
26842684
(asdl_seq_LEN(expr1->v.Tuple.elts) == 2 ||
26852685
asdl_seq_LEN(expr1->v.Tuple.elts) == 3)) {
2686-
/* Backwards compatibility: pass exec args as a tuple */
2687-
globals = (expr_ty) asdl_seq_GET(expr1->v.Tuple.elts, 1);
2686+
/* Backwards compatibility: passing exec args as a tuple */
2687+
globals = asdl_seq_GET(expr1->v.Tuple.elts, 1);
26882688
if (asdl_seq_LEN(expr1->v.Tuple.elts) == 3) {
2689-
locals = (expr_ty) asdl_seq_GET(expr1->v.Tuple.elts, 2);
2689+
locals = asdl_seq_GET(expr1->v.Tuple.elts, 2);
26902690
}
2691-
expr1 = (expr_ty) asdl_seq_GET(expr1->v.Tuple.elts, 0);
2691+
expr1 = asdl_seq_GET(expr1->v.Tuple.elts, 0);
26922692
}
26932693

26942694
if (n_children >= 4) {

0 commit comments

Comments
 (0)