Skip to content

Commit

Permalink
fix flags in _PyCompile_CodeGen
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Nov 8, 2022
1 parent ce45de8 commit d98f150
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Python/compile.c
Expand Up @@ -9996,6 +9996,10 @@ _PyCompile_CodeGen(PyObject *ast, PyObject *filename, PyCompilerFlags *flags,
return NULL;
}

PyCompilerFlags local_flags = _PyCompilerFlags_INIT;
if (!flags) {
flags = &local_flags;
}
if (!compiler_setup(&c, mod, filename, flags, optimize, arena)) {
goto finally;
}
Expand Down

0 comments on commit d98f150

Please sign in to comment.