summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-11-04 19:25:22 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-11-04 19:25:22 (GMT)
commit85dbec6da74d4e5e83d0ff9c03155ecef8feea83 (patch)
tree98532558dae02efb86e36d8fcac7aefa695a1ea5 /Python/ast.c
parent5310e5078ad331631f109e8fa33b8534911f0ce0 (diff)
downloadcpython-85dbec6da74d4e5e83d0ff9c03155ecef8feea83.zip
cpython-85dbec6da74d4e5e83d0ff9c03155ecef8feea83.tar.gz
cpython-85dbec6da74d4e5e83d0ff9c03155ecef8feea83.tar.bz2
Bug #1588287: fix invalid assertion for `1,2` in debug builds.
Will backport
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c
index f490268..dcf7f2b 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -532,6 +532,7 @@ seq_for_testlist(struct compiling *c, const node *n)
|| TYPE(n) == listmaker
|| TYPE(n) == testlist_gexp
|| TYPE(n) == testlist_safe
+ || TYPE(n) == testlist1
);
seq = asdl_seq_new((NCH(n) + 1) / 2, c->c_arena);