diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-09-14 05:09:48 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-09-14 05:09:48 (GMT) |
commit | 4aa74c429cabef6aaf91b2b0d4c2163778b1249d (patch) | |
tree | 2615bf5ed21c6b39c4b6c94f1fc536e1f266e890 /Modules | |
parent | 134192630a28d6ae6c2a256f95a44a2dd3c65388 (diff) | |
download | cpython-4aa74c429cabef6aaf91b2b0d4c2163778b1249d.zip cpython-4aa74c429cabef6aaf91b2b0d4c2163778b1249d.tar.gz cpython-4aa74c429cabef6aaf91b2b0d4c2163778b1249d.tar.bz2 |
Issue #28131: Fix a regression in zipimport's compile_source()
zipimport should use the same optimization level as the interpreter.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/zipimport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c index 92a82e6..7473a8f 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c @@ -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; |