summaryrefslogtreecommitdiffstats
path: root/Include/cpython/abstract.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-11 22:42:23 (GMT)
committerGitHub <noreply@github.com>2021-10-11 22:42:23 (GMT)
commitce3489cfdb9f0e050bdc45ce5d3902c2577ea683 (patch)
tree2493f172e9eddadbd5ca53cb810ddd4971bbcef3 /Include/cpython/abstract.h
parentfb8f208a4ddb38eedee71f9ecd0f22058802dab1 (diff)
downloadcpython-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 'Include/cpython/abstract.h')
-rw-r--r--Include/cpython/abstract.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/abstract.h b/Include/cpython/abstract.h
index ea269f7..18bf013 100644
--- a/Include/cpython/abstract.h
+++ b/Include/cpython/abstract.h
@@ -164,7 +164,7 @@ _PyObject_FastCall(PyObject *func, PyObject *const *args, Py_ssize_t nargs)
Private static inline function variant of public function
PyObject_CallNoArgs(). */
static inline PyObject *
-_PyObject_CallNoArg(PyObject *func) {
+_PyObject_CallNoArgs(PyObject *func) {
PyThreadState *tstate = PyThreadState_Get();
return _PyObject_VectorcallTstate(tstate, func, NULL, 0, NULL);
}