mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #28131: Fix a regression in zipimport's compile_source()
zipimport should use the same optimization level as the interpreter.
This commit is contained in:
parent
134192630a
commit
4aa74c429c
3 changed files with 17 additions and 1 deletions
|
@ -1370,7 +1370,7 @@ compile_source(PyObject *pathname, PyObject *source)
|
|||
}
|
||||
|
||||
code = Py_CompileStringObject(PyBytes_AsString(fixed_source),
|
||||
pathname, Py_file_input, NULL, 1);
|
||||
pathname, Py_file_input, NULL, -1);
|
||||
|
||||
Py_DECREF(fixed_source);
|
||||
return code;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue