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

@ -1206,7 +1206,7 @@ math_ceil(PyObject *module, PyObject *number)
if (!PyFloat_CheckExact(number)) {
PyObject *method = _PyObject_LookupSpecial(number, &PyId___ceil__);
if (method != NULL) {
PyObject *result = _PyObject_CallNoArg(method);
PyObject *result = _PyObject_CallNoArgs(method);
Py_DECREF(method);
return result;
}
@ -1275,7 +1275,7 @@ math_floor(PyObject *module, PyObject *number)
{
PyObject *method = _PyObject_LookupSpecial(number, &PyId___floor__);
if (method != NULL) {
PyObject *result = _PyObject_CallNoArg(method);
PyObject *result = _PyObject_CallNoArgs(method);
Py_DECREF(method);
return result;
}
@ -2130,7 +2130,7 @@ math_trunc(PyObject *module, PyObject *x)
Py_TYPE(x)->tp_name);
return NULL;
}
result = _PyObject_CallNoArg(trunc);
result = _PyObject_CallNoArgs(trunc);
Py_DECREF(trunc);
return result;
}