summaryrefslogtreecommitdiffstats
path: root/Objects/enumobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-06 17:46:19 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-12-06 17:46:19 (GMT)
commitf17c3de2635df4f5a51c2cb6b99f3e125af19864 (patch)
tree0ce2ba9e92cf1872d318ea136b4640bd7579666f /Objects/enumobject.c
parenta5ed5f000aad67d216201d959de4c70b7575309d (diff)
downloadcpython-f17c3de2635df4f5a51c2cb6b99f3e125af19864.zip
cpython-f17c3de2635df4f5a51c2cb6b99f3e125af19864.tar.gz
cpython-f17c3de2635df4f5a51c2cb6b99f3e125af19864.tar.bz2
Use _PyObject_CallNoArg()
Replace: PyObject_CallFunctionObjArgs(callable, NULL) with: _PyObject_CallNoArg(callable)
Diffstat (limited to 'Objects/enumobject.c')
-rw-r--r--Objects/enumobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/enumobject.c b/Objects/enumobject.c
index dae166d..72d31b1 100644
--- a/Objects/enumobject.c
+++ b/Objects/enumobject.c
@@ -258,7 +258,7 @@ reversed_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
return NULL;
}
if (reversed_meth != NULL) {
- PyObject *res = PyObject_CallFunctionObjArgs(reversed_meth, NULL);
+ PyObject *res = _PyObject_CallNoArg(reversed_meth);
Py_DECREF(reversed_meth);
return res;
}