diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-13 07:46:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-13 07:46:01 (GMT) |
commit | 032bf30643fff49b5595b53f9c1ce5b2cd2df504 (patch) | |
tree | 63d2867cac494cd5c41a809866fd08074fcc60a3 /Parser | |
parent | c80183e6ca8c0ce834fc6444a71c7f31a3eb05b7 (diff) | |
download | cpython-032bf30643fff49b5595b53f9c1ce5b2cd2df504.zip cpython-032bf30643fff49b5595b53f9c1ce5b2cd2df504.tar.gz cpython-032bf30643fff49b5595b53f9c1ce5b2cd2df504.tar.bz2 |
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 022ac0a497b668d8b15e34e582a6396ead1a35e1)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/asdl_c.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 582c6ca..f4fa271 100644 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -1191,11 +1191,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]; char *req_name[] = {"Module", "Expression", "Interactive"}; @@ -1280,7 +1275,6 @@ def main(srcfile, dump_module=False): f.write("\n") f.write("PyObject* PyAST_mod2obj(mod_ty t);\n") f.write("mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode);\n") - f.write("mod_ty PyAST_obj2mod_ex(PyObject* ast, PyArena* arena, int mode, int feature_version);\n") f.write("int PyAST_Check(PyObject* obj);\n") f.write('\n') f.write('#ifdef __cplusplus\n') |