diff options
author | Victor Stinner <vstinner@python.org> | 2021-10-11 22:42:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 22:42:23 (GMT) |
commit | ce3489cfdb9f0e050bdc45ce5d3902c2577ea683 (patch) | |
tree | 2493f172e9eddadbd5ca53cb810ddd4971bbcef3 /Modules/mathmodule.c | |
parent | fb8f208a4ddb38eedee71f9ecd0f22058802dab1 (diff) | |
download | cpython-ce3489cfdb9f0e050bdc45ce5d3902c2577ea683.zip cpython-ce3489cfdb9f0e050bdc45ce5d3902c2577ea683.tar.gz cpython-ce3489cfdb9f0e050bdc45ce5d3902c2577ea683.tar.bz2 |
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().
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r-- | Modules/mathmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 5e9f63f..62acece 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -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; } |