diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-26 06:08:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 06:08:12 (GMT) |
commit | 00e75a33728cdad7c10088acc36bc55b2f4a0efe (patch) | |
tree | c7be67273878a3b655a93f7a3500cff95c20e47f /Python/import.c | |
parent | 93a970ffbce58657cc99305be69e460a11371730 (diff) | |
download | cpython-00e75a33728cdad7c10088acc36bc55b2f4a0efe.zip cpython-00e75a33728cdad7c10088acc36bc55b2f4a0efe.tar.gz cpython-00e75a33728cdad7c10088acc36bc55b2f4a0efe.tar.bz2 |
gh-106084: Remove old PyObject call aliases (#106085)
Remove old aliases which were kept backwards compatibility with
Python 3.8:
* _PyObject_CallMethodNoArgs()
* _PyObject_CallMethodOneArg()
* _PyObject_CallOneArg()
* _PyObject_FastCallDict()
* _PyObject_Vectorcall()
* _PyObject_VectorcallMethod()
* _PyVectorcall_Function()
Update code which used these aliases to use new names.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index 97da8bb..b3699bd 100644 --- a/Python/import.c +++ b/Python/import.c @@ -278,7 +278,7 @@ import_ensure_initialized(PyInterpreterState *interp, PyObject *mod, PyObject *n Py_XDECREF(spec); if (busy) { /* Wait until module is done importing. */ - PyObject *value = _PyObject_CallMethodOneArg( + PyObject *value = PyObject_CallMethodOneArg( IMPORTLIB(interp), &_Py_ID(_lock_unlock_module), name); if (value == NULL) { return -1; @@ -1660,7 +1660,7 @@ PyImport_ExecCodeModuleWithPathnames(const char *name, PyObject *co, external= PyObject_GetAttrString(IMPORTLIB(interp), "_bootstrap_external"); if (external != NULL) { - pathobj = _PyObject_CallMethodOneArg( + pathobj = PyObject_CallMethodOneArg( external, &_Py_ID(_get_sourcefile), cpathobj); Py_DECREF(external); } |