summaryrefslogtreecommitdiffstats
path: root/Modules/zipimport.c
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-09-14 05:09:48 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-09-14 05:09:48 (GMT)
commit4aa74c429cabef6aaf91b2b0d4c2163778b1249d (patch)
tree2615bf5ed21c6b39c4b6c94f1fc536e1f266e890 /Modules/zipimport.c
parent134192630a28d6ae6c2a256f95a44a2dd3c65388 (diff)
downloadcpython-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/zipimport.c')
-rw-r--r--Modules/zipimport.c2
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;