mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
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:
parent
fb8f208a4d
commit
ce3489cfdb
37 changed files with 73 additions and 73 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue