mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix assertion errors in debug build, brought on by PEP 308 patch.
This commit is contained in:
parent
577b5b960d
commit
fa443cda87
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ seq_for_testlist(struct compiling *c, const node *n)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
for (i = 0; i < NCH(n); i += 2) {
|
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));
|
expression = ast_for_expr(c, CHILD(n, i));
|
||||||
if (!expression)
|
if (!expression)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue