projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
577b5b9
)
Fix assertion errors in debug build, brought on by PEP 308 patch.
author
Thomas Wouters
<thomas@python.org>
Mon, 27 Feb 2006 15:43:57 +0000
(15:43 +0000)
committer
Thomas Wouters
<thomas@python.org>
Mon, 27 Feb 2006 15:43:57 +0000
(15:43 +0000)
Python/ast.c
patch
|
blob
|
history
diff --git
a/Python/ast.c
b/Python/ast.c
index 94c877d3cc0fd2b4f2b78c2a0b83adc1b4801782..3f2a9f3e2d4dcb5b2336a91ea2666633a52f0f55 100644
(file)
--- 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)