]> granicus.if.org Git - python/commitdiff
Fix assertion errors in debug build, brought on by PEP 308 patch.
authorThomas Wouters <thomas@python.org>
Mon, 27 Feb 2006 15:43:57 +0000 (15:43 +0000)
committerThomas Wouters <thomas@python.org>
Mon, 27 Feb 2006 15:43:57 +0000 (15:43 +0000)
Python/ast.c

index 94c877d3cc0fd2b4f2b78c2a0b83adc1b4801782..3f2a9f3e2d4dcb5b2336a91ea2666633a52f0f55 100644 (file)
@@ -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)