[Python-checkins] cpython (2.7): remove casts

benjamin.peterson python-checkins at python.org
Sun Aug 10 04:40:04 CEST 2014


http://hg.python.org/cpython/rev/928135d0fa7d
changeset:   92058:928135d0fa7d
branch:      2.7
user:        Benjamin Peterson <benjamin at python.org>
date:        Sat Aug 09 19:39:55 2014 -0700
summary:
  remove casts

files:
  Python/ast.c |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Python/ast.c b/Python/ast.c
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -2683,12 +2683,12 @@
     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) {

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list