summaryrefslogtreecommitdiff
path: root/Modules/itertoolsmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-12 00:42:23 +0200
committerGitHub <noreply@github.com>2021-10-12 00:42:23 +0200
commitce3489cfdb9f0e050bdc45ce5d3902c2577ea683 (patch)
tree2493f172e9eddadbd5ca53cb810ddd4971bbcef3 /Modules/itertoolsmodule.c
parentfb8f208a4ddb38eedee71f9ecd0f22058802dab1 (diff)
downloadcpython-git-ce3489cfdb9f0e050bdc45ce5d3902c2577ea683.tar.gz
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/itertoolsmodule.c')
-rw-r--r--Modules/itertoolsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 0df179673a..d6f898cdbf 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -1058,7 +1058,7 @@ itertools_tee_impl(PyObject *module, PyObject *iterable, Py_ssize_t n)
PyTuple_SET_ITEM(result, 0, copyable);
for (i = 1; i < n; i++) {
- copyable = _PyObject_CallNoArg(copyfunc);
+ copyable = _PyObject_CallNoArgs(copyfunc);
if (copyable == NULL) {
Py_DECREF(copyfunc);
Py_DECREF(result);