mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
gh-117411: move PyFutureFeatures to pycore_symtable.h and make it private (#117412)
This commit is contained in:
parent
5fd1897ec5
commit
1d5479b236
11 changed files with 49 additions and 42 deletions
|
@ -387,7 +387,7 @@ symtable_new(void)
|
|||
}
|
||||
|
||||
struct symtable *
|
||||
_PySymtable_Build(mod_ty mod, PyObject *filename, PyFutureFeatures *future)
|
||||
_PySymtable_Build(mod_ty mod, PyObject *filename, _PyFutureFeatures *future)
|
||||
{
|
||||
struct symtable *st = symtable_new();
|
||||
asdl_stmt_seq *seq;
|
||||
|
@ -2757,7 +2757,7 @@ _Py_SymtableStringObjectFlags(const char *str, PyObject *filename,
|
|||
_PyArena_Free(arena);
|
||||
return NULL;
|
||||
}
|
||||
PyFutureFeatures future;
|
||||
_PyFutureFeatures future;
|
||||
if (!_PyFuture_FromAST(mod, filename, &future)) {
|
||||
_PyArena_Free(arena);
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue