summaryrefslogtreecommitdiffstats
path: root/Modules/_functoolsmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-06 17:45:50 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-12-06 17:45:50 (GMT)
commita5ed5f000aad67d216201d959de4c70b7575309d (patch)
treef30829b98aaada578afe0a9b1dced36e4c0f237f /Modules/_functoolsmodule.c
parent2a358f862bb24ddfb26c45d7e4af87c073d4bc1f (diff)
downloadcpython-a5ed5f000aad67d216201d959de4c70b7575309d.zip
cpython-a5ed5f000aad67d216201d959de4c70b7575309d.tar.gz
cpython-a5ed5f000aad67d216201d959de4c70b7575309d.tar.bz2
Use _PyObject_CallNoArg()
Replace: PyObject_CallObject(callable, NULL) with: _PyObject_CallNoArg(callable)
Diffstat (limited to 'Modules/_functoolsmodule.c')
-rw-r--r--Modules/_functoolsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c
index 2269d05..19ca65b 100644
--- a/Modules/_functoolsmodule.c
+++ b/Modules/_functoolsmodule.c
@@ -1246,7 +1246,7 @@ PyInit__functools(void)
if (m == NULL)
return NULL;
- kwd_mark = PyObject_CallObject((PyObject *)&PyBaseObject_Type, NULL);
+ kwd_mark = _PyObject_CallNoArg((PyObject *)&PyBaseObject_Type);
if (!kwd_mark) {
Py_DECREF(m);
return NULL;