From fa443cda878b85abb83efb9674df4ff32f6d1b17 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Mon, 27 Feb 2006 15:43:57 +0000 Subject: [PATCH] Fix assertion errors in debug build, brought on by PEP 308 patch. --- Python/ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ast.c b/Python/ast.c index 94c877d3cc..3f2a9f3e2d 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) -- 2.40.0