summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-13 07:18:45 (GMT)
committerGitHub <noreply@github.com>2019-06-13 07:18:45 (GMT)
commit022ac0a497b668d8b15e34e582a6396ead1a35e1 (patch)
treec8d9b4e5f61a09cecda8f68083a6c12c24ad8fe2 /Python
parent8725c83ed5ca8959195ad8326db99d564a921749 (diff)
downloadcpython-022ac0a497b668d8b15e34e582a6396ead1a35e1.zip
cpython-022ac0a497b668d8b15e34e582a6396ead1a35e1.tar.gz
cpython-022ac0a497b668d8b15e34e582a6396ead1a35e1.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.
Diffstat (limited to 'Python')
-rw-r--r--Python/Python-ast.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index dc2b130..0774c58 100644
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -8991,11 +8991,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"};