diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-09-27 14:08:59 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-09-27 14:08:59 (GMT) |
commit | defa04ec8b770e9397ab2d48ec66efd7d0346777 (patch) | |
tree | 831a883eb2d37b5ce712dfe70493ffce1dcbac67 /Python | |
parent | 4905e80c3d2f6abb613d212f0313d1dfe09475dc (diff) | |
download | cpython-defa04ec8b770e9397ab2d48ec66efd7d0346777.zip cpython-defa04ec8b770e9397ab2d48ec66efd7d0346777.tar.gz cpython-defa04ec8b770e9397ab2d48ec66efd7d0346777.tar.bz2 |
star_expr now always has two nodes
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/ast.c b/Python/ast.c index 97b57ec..dfcc8e3 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. |