]> granicus.if.org Git - python/commitdiff
star_expr now always has two nodes
authorBenjamin Peterson <benjamin@python.org>
Sun, 27 Sep 2009 14:08:59 +0000 (14:08 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 27 Sep 2009 14:08:59 +0000 (14:08 +0000)
Python/ast.c

index 97b57ec10027568177aa928ae3d67105906c7322..dfcc8e32e150745975412eed258e7355ae16e965 100644 (file)
@@ -1889,9 +1889,7 @@ ast_for_expr(struct compiling *c, const node *n)
             break;
 
         case star_expr:
-            if (TYPE(CHILD(n, 0)) == STAR)
-                return ast_for_starred(c, n);
-            /* Fall through to generic case. */
+           return ast_for_starred(c, n);
         /* The next five cases all handle BinOps.  The main body of code
            is the same in each case, but the switch turned inside out to
            reuse the code for each type of operator.