diff Python/ast.c @ 40287:ebaf347d42fb legacy-trunk

Bug #1588287: fix invalid assertion for `1,2` in debug builds. Will backport
author Neal Norwitz <nnorwitz@gmail.com>
date Sat, 04 Nov 2006 19:25:22 +0000
parents b8cb7201379c
children 0b47446cc408
line wrap: on
line diff
--- a/Python/ast.c	Sat Nov 04 18:14:06 2006 +0000
+++ b/Python/ast.c	Sat Nov 04 19:25:22 2006 +0000
@@ -532,6 +532,7 @@
            || 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);