diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 18:46:19 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 18:46:19 +0100 |
commit | a95a307d2cbb7fc1c778691f142e0c21c05fd5bc (patch) | |
tree | ad6414ad4a6b87daa31bd39654bbbee776488550 /Objects/complexobject.c | |
parent | b729181a504b6aff2461dcbc07c33e902ee90cb0 (diff) | |
download | cpython-a95a307d2cbb7fc1c778691f142e0c21c05fd5bc.tar.gz |
Use _PyObject_CallNoArg()
Replace:
PyObject_CallFunctionObjArgs(callable, NULL)
with:
_PyObject_CallNoArg(callable)
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r-- | Objects/complexobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 31e12784cc..0d391e5208 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -273,7 +273,7 @@ try_complex_special_method(PyObject *op) { f = _PyObject_LookupSpecial(op, &PyId___complex__); if (f) { - PyObject *res = PyObject_CallFunctionObjArgs(f, NULL); + PyObject *res = _PyObject_CallNoArg(f); Py_DECREF(f); if (res != NULL && !PyComplex_Check(res)) { PyErr_SetString(PyExc_TypeError, |