Skip to content

Commit 022ac0a

Browse files
authored
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.
1 parent 8725c83 commit 022ac0a

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

Include/Python-ast.h

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Parser/asdl_c.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,11 +1190,6 @@ class PartingShots(StaticVisitor):
11901190
11911191
/* mode is 0 for "exec", 1 for "eval" and 2 for "single" input */
11921192
mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode)
1193-
{
1194-
return PyAST_obj2mod_ex(ast, arena, mode, PY_MINOR_VERSION);
1195-
}
1196-
1197-
mod_ty PyAST_obj2mod_ex(PyObject* ast, PyArena* arena, int mode, int feature_version)
11981193
{
11991194
mod_ty res;
12001195
PyObject *req_type[3];
@@ -1280,7 +1275,6 @@ def main(srcfile, dump_module=False):
12801275
f.write("\n")
12811276
f.write("PyObject* PyAST_mod2obj(mod_ty t);\n")
12821277
f.write("mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode);\n")
1283-
f.write("mod_ty PyAST_obj2mod_ex(PyObject* ast, PyArena* arena, int mode, int feature_version);\n")
12841278
f.write("int PyAST_Check(PyObject* obj);\n")
12851279
f.write('\n')
12861280
f.write('#ifdef __cplusplus\n')

Python/Python-ast.c

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)