mirror of
https://github.com/python/cpython.git
synced 2025-08-24 02:35:59 +00:00
gh-124013: remove _PyCompile_IsTopLevelAwait (#124014)
This commit is contained in:
parent
b2afe2aae4
commit
8145ebea58
3 changed files with 0 additions and 29 deletions
|
@ -1242,15 +1242,6 @@ _PyCompile_Metadata(compiler *c)
|
|||
return &c->u->u_metadata;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
int
|
||||
_PyCompile_IsTopLevelAwait(compiler *c)
|
||||
{
|
||||
return c->c_flags.cf_flags & PyCF_ALLOW_TOP_LEVEL_AWAIT &&
|
||||
c->u->u_ste->ste_type == ModuleBlock;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Merge *obj* with constant cache, without recursion.
|
||||
int
|
||||
_PyCompile_ConstCacheMergeOne(PyObject *const_cache, PyObject **obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue