summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-02-27 15:43:57 (GMT)
committerThomas Wouters <thomas@python.org>2006-02-27 15:43:57 (GMT)
commitfa443cda878b85abb83efb9674df4ff32f6d1b17 (patch)
treec66730faa450c7b31d9ac489c3649eb7757384cf /Python/ast.c
parent577b5b960d33c822f95c142e6be6dc0c819d529e (diff)
downloadcpython-fa443cda878b85abb83efb9674df4ff32f6d1b17.zip
cpython-fa443cda878b85abb83efb9674df4ff32f6d1b17.tar.gz
cpython-fa443cda878b85abb83efb9674df4ff32f6d1b17.tar.bz2
Fix assertion errors in debug build, brought on by PEP 308 patch.
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 94c877d..3f2a9f3 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -537,7 +537,7 @@ seq_for_testlist(struct compiling *c, const node *n)
return NULL;
for (i = 0; i < NCH(n); i += 2) {
- REQ(CHILD(n, i), test);
+ assert(TYPE(CHILD(n, i)) == test || TYPE(CHILD(n, i)) == old_test);
expression = ast_for_expr(c, CHILD(n, i));
if (!expression)