Skip to content

Commit 9f0e7d6

Browse files
Add assert for c->u being NULL
1 parent 6c856bc commit 9f0e7d6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Python/compile.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,7 @@ compiler_mod(compiler *c, mod_ty mod)
893893
{
894894
PyCodeObject *co = NULL;
895895
int addNone = mod->kind != Expression_kind;
896+
assert(c->u == NULL);
896897
if (compiler_codegen(c, mod) < 0) {
897898
goto finally;
898899
}

0 commit comments

Comments
 (0)