]> granicus.if.org Git - python/commitdiff
remove casts
authorBenjamin Peterson <benjamin@python.org>
Sun, 10 Aug 2014 02:39:55 +0000 (19:39 -0700)
committerBenjamin Peterson <benjamin@python.org>
Sun, 10 Aug 2014 02:39:55 +0000 (19:39 -0700)
Python/ast.c

index ffd5679e09bc09fdafd875e8d4eb8db962b10391..e5d7ac6600cc0d47e368d15a027415921770259f 100644 (file)
@@ -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) {