diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 9bb20de8bdd..d7b8872b57c 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1098,7 +1098,7 @@ Py_CompileStringFlags(char *str, char *filename, int start, n = PyParser_SimpleParseString(str, start); if (n == NULL) return NULL; - co = PyNode_Compile(n, filename); + co = PyNode_CompileFlags(n, filename, flags); PyNode_Free(n); return (PyObject *)co; }