diff Python/ast.c @ 36670:296cda9b3e2f legacy-trunk

Fix assertion errors in debug build, brought on by PEP 308 patch.
author Thomas Wouters <thomas@python.org>
date Mon, 27 Feb 2006 15:43:57 +0000
parents 6165927431d6
children 67c74efad8c2
line wrap: on
line diff
--- a/Python/ast.c	Mon Feb 27 15:23:19 2006 +0000
+++ b/Python/ast.c	Mon Feb 27 15:43:57 2006 +0000
@@ -537,7 +537,7 @@
         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)