mirror of https://github.com/python/cpython
PyRun_StringFlags(): forgot to pass the flags on to
PyParser_SimpleParseString(). Now calls PyParser_SimpleParseStringFlags() with the correct flag.
This commit is contained in:
parent
1baac7201e
commit
a1b3a47406
|
@ -1005,7 +1005,10 @@ PyObject *
|
|||
PyRun_StringFlags(char *str, int start, PyObject *globals, PyObject *locals,
|
||||
PyCompilerFlags *flags)
|
||||
{
|
||||
return run_err_node(PyParser_SimpleParseString(str, start),
|
||||
return run_err_node(PyParser_SimpleParseStringFlags(
|
||||
str, start,
|
||||
(flags && flags->cf_flags & PyCF_GENERATORS) ?
|
||||
PyPARSE_YIELD_IS_KEYWORD : 0),
|
||||
"<string>", globals, locals, flags);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue