mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
bpo-37253: Remove PyAST_obj2mod_ex() function (GH-14020)
PyAST_obj2mod_ex() is similar to PyAST_obj2mod() with an additional
'feature_version' parameter which is unused.
(cherry picked from commit 022ac0a497
)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
This commit is contained in:
parent
c80183e6ca
commit
032bf30643
3 changed files with 0 additions and 12 deletions
5
Python/Python-ast.c
generated
5
Python/Python-ast.c
generated
|
@ -8990,11 +8990,6 @@ PyObject* PyAST_mod2obj(mod_ty t)
|
|||
|
||||
/* mode is 0 for "exec", 1 for "eval" and 2 for "single" input */
|
||||
mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode)
|
||||
{
|
||||
return PyAST_obj2mod_ex(ast, arena, mode, PY_MINOR_VERSION);
|
||||
}
|
||||
|
||||
mod_ty PyAST_obj2mod_ex(PyObject* ast, PyArena* arena, int mode, int feature_version)
|
||||
{
|
||||
mod_ty res;
|
||||
PyObject *req_type[3];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue