From ce3489cfdb9f0e050bdc45ce5d3902c2577ea683 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 12 Oct 2021 00:42:23 +0200 Subject: 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(). --- Python/errors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/errors.c') diff --git a/Python/errors.c b/Python/errors.c index b2030f728a..36a529e65a 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -91,7 +91,7 @@ _PyErr_CreateException(PyObject *exception_type, PyObject *value) PyObject *exc; if (value == NULL || value == Py_None) { - exc = _PyObject_CallNoArg(exception_type); + exc = _PyObject_CallNoArgs(exception_type); } else if (PyTuple_Check(value)) { exc = PyObject_Call(exception_type, value, NULL); -- cgit v1.2.1