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
commit07194b1ca66cd745689e24253b5f2a9288807e6e (patch)
treebde8825dafb2341cb223428fd6facbd2cfb222d7 /Python/ast.c
parent8ccabc0faaf6b0af4ba2483c6212f324815fbef1 (diff)
downloadcpython-07194b1ca66cd745689e24253b5f2a9288807e6e.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.