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 /Objects/call.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 'Objects/call.c')
-rw-r--r-- | Objects/call.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/call.c b/Objects/call.c index ecf6e68..cfcd422 100644 --- a/Objects/call.c +++ b/Objects/call.c @@ -1,5 +1,5 @@ #include "Python.h" -#include "pycore_call.h" // _PyObject_CallNoArgTstate() +#include "pycore_call.h" // _PyObject_CallNoArgsTstate() #include "pycore_ceval.h" // _PyEval_EvalFrame() #include "pycore_object.h" // _PyObject_GC_TRACK() #include "pycore_pyerrors.h" // _PyErr_Occurred() @@ -110,7 +110,7 @@ PyObject * PyObject_CallNoArgs(PyObject *func) { PyThreadState *tstate = _PyThreadState_GET(); - return _PyObject_CallNoArgTstate(tstate, func); + return _PyObject_CallNoArgsTstate(tstate, func); } @@ -402,7 +402,7 @@ PyObject_CallObject(PyObject *callable, PyObject *args) PyThreadState *tstate = _PyThreadState_GET(); assert(!_PyErr_Occurred(tstate)); if (args == NULL) { - return _PyObject_CallNoArgTstate(tstate, callable); + return _PyObject_CallNoArgsTstate(tstate, callable); } if (!PyTuple_Check(args)) { _PyErr_SetString(tstate, PyExc_TypeError, @@ -468,7 +468,7 @@ _PyObject_CallFunctionVa(PyThreadState *tstate, PyObject *callable, } if (!format || !*format) { - return _PyObject_CallNoArgTstate(tstate, callable); + return _PyObject_CallNoArgsTstate(tstate, callable); } if (is_size_t) { |