diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 17:46:19 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 17:46:19 (GMT) |
commit | f17c3de2635df4f5a51c2cb6b99f3e125af19864 (patch) | |
tree | 0ce2ba9e92cf1872d318ea136b4640bd7579666f /Modules/mathmodule.c | |
parent | a5ed5f000aad67d216201d959de4c70b7575309d (diff) | |
download | cpython-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 'Modules/mathmodule.c')
-rw-r--r-- | Modules/mathmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 95ea4f7..e7e34ef 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -951,7 +951,7 @@ static PyObject * math_ceil(PyObject *self, PyObject *number) { return NULL; return math_1_to_int(number, ceil, 0); } - result = PyObject_CallFunctionObjArgs(method, NULL); + result = _PyObject_CallNoArg(method); Py_DECREF(method); return result; } @@ -991,7 +991,7 @@ static PyObject * math_floor(PyObject *self, PyObject *number) { return NULL; return math_1_to_int(number, floor, 0); } - result = PyObject_CallFunctionObjArgs(method, NULL); + result = _PyObject_CallNoArg(method); Py_DECREF(method); return result; } @@ -1542,7 +1542,7 @@ math_trunc(PyObject *self, PyObject *number) Py_TYPE(number)->tp_name); return NULL; } - result = PyObject_CallFunctionObjArgs(trunc, NULL); + result = _PyObject_CallNoArg(trunc); Py_DECREF(trunc); return result; } |