Kaydet (Commit) fa443cda authored tarafından Thomas Wouters's avatar Thomas Wouters

Fix assertion errors in debug build, brought on by PEP 308 patch.

üst 577b5b96
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment