bpo-45439: Rename _PyObject_CallNoArg() to _PyObject_CallNoArgs() (GH-28891)

Fix typo in the private _PyObject_CallNoArg() function name: rename
it to _PyObject_CallNoArgs() to be consistent with the public
function PyObject_CallNoArgs().
This commit is contained in:
Victor Stinner 2021-10-12 00:42:23 +02:00 committed by GitHub
parent fb8f208a4d
commit ce3489cfdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 73 additions and 73 deletions

View file

@ -572,7 +572,7 @@ format_obj(PyObject *v, const char **pbuf, Py_ssize_t *plen)
/* does it support __bytes__? */
func = _PyObject_LookupSpecial(v, &PyId___bytes__);
if (func != NULL) {
result = _PyObject_CallNoArg(func);
result = _PyObject_CallNoArgs(func);
Py_DECREF(func);
if (result == NULL)
return NULL;
@ -2622,7 +2622,7 @@ bytes_new_impl(PyTypeObject *type, PyObject *x, const char *encoding,
integer argument before deferring to PyBytes_FromObject, something
PyObject_Bytes doesn't do. */
else if ((func = _PyObject_LookupSpecial(x, &PyId___bytes__)) != NULL) {
bytes = _PyObject_CallNoArg(func);
bytes = _PyObject_CallNoArgs(func);
Py_DECREF(func);
if (bytes == NULL)
return NULL;