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/sysmodule.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/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index f5d4711..3284e14 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -3756,7 +3756,7 @@ sys_pyfile_write_unicode(PyObject *unicode, PyObject *file) if (file == NULL) return -1; assert(unicode != NULL); - PyObject *result = _PyObject_CallMethodOneArg(file, &_Py_ID(write), unicode); + PyObject *result = PyObject_CallMethodOneArg(file, &_Py_ID(write), unicode); if (result == NULL) { return -1; } |