diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-08-10 02:39:55 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-08-10 02:39:55 (GMT) |
commit | b6f0d0531b421da308312a871ea165cbcc597011 (patch) | |
tree | 789ddcef387a6f0fa1d6ceb81e2de91faf759b05 /Python/ast.c | |
parent | 4f09e615cd6b7bef321e1cc33d8936ceaf2ac680 (diff) | |
download | cpython-b6f0d0531b421da308312a871ea165cbcc597011.zip cpython-b6f0d0531b421da308312a871ea165cbcc597011.tar.gz cpython-b6f0d0531b421da308312a871ea165cbcc597011.tar.bz2 |
remove casts
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/ast.c b/Python/ast.c index ffd5679..e5d7ac6 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -2683,12 +2683,12 @@ ast_for_exec_stmt(struct compiling *c, const node *n) if (expr1->kind == Tuple_kind && n_children < 4 && (asdl_seq_LEN(expr1->v.Tuple.elts) == 2 || asdl_seq_LEN(expr1->v.Tuple.elts) == 3)) { - /* Backwards compatibility: pass exec args as a tuple */ - globals = (expr_ty) asdl_seq_GET(expr1->v.Tuple.elts, 1); + /* Backwards compatibility: passing exec args as a tuple */ + globals = asdl_seq_GET(expr1->v.Tuple.elts, 1); if (asdl_seq_LEN(expr1->v.Tuple.elts) == 3) { - locals = (expr_ty) asdl_seq_GET(expr1->v.Tuple.elts, 2); + locals = asdl_seq_GET(expr1->v.Tuple.elts, 2); } - expr1 = (expr_ty) asdl_seq_GET(expr1->v.Tuple.elts, 0); + expr1 = asdl_seq_GET(expr1->v.Tuple.elts, 0); } if (n_children >= 4) { |