summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-09-27 14:08:59 +0000
committerBenjamin Peterson <benjamin@python.org>2009-09-27 14:08:59 +0000
commitdefa04ec8b770e9397ab2d48ec66efd7d0346777 (patch)
tree831a883eb2d37b5ce712dfe70493ffce1dcbac67 /Python/ast.c
parent4905e80c3d2f6abb613d212f0313d1dfe09475dc (diff)
downloadcpython-git-defa04ec8b770e9397ab2d48ec66efd7d0346777.tar.gz
star_expr now always has two nodes
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 97b57ec100..dfcc8e32e1 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -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.