mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
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.
This commit is contained in:
parent
93a970ffbc
commit
00e75a3372
12 changed files with 42 additions and 24 deletions
|
@ -1707,7 +1707,7 @@ marshal_dump_impl(PyObject *module, PyObject *value, PyObject *file,
|
|||
s = PyMarshal_WriteObjectToString(value, version);
|
||||
if (s == NULL)
|
||||
return NULL;
|
||||
res = _PyObject_CallMethodOneArg(file, &_Py_ID(write), s);
|
||||
res = PyObject_CallMethodOneArg(file, &_Py_ID(write), s);
|
||||
Py_DECREF(s);
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue