mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Check whether there are flags.
This commit is contained in:
parent
ce1d5d2527
commit
2b366e41c3
1 changed files with 1 additions and 1 deletions
|
@ -1254,7 +1254,7 @@ Py_CompileStringFlags(const char *str, const char *filename, int start,
|
||||||
PyArena_Free(arena);
|
PyArena_Free(arena);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (flags->cf_flags & PyCF_ONLY_AST) {
|
if (flags && (flags->cf_flags & PyCF_ONLY_AST)) {
|
||||||
PyObject *result = PyAST_mod2obj(mod);
|
PyObject *result = PyAST_mod2obj(mod);
|
||||||
PyArena_Free(arena);
|
PyArena_Free(arena);
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue