diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 17:45:50 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 17:45:50 (GMT) |
commit | a5ed5f000aad67d216201d959de4c70b7575309d (patch) | |
tree | f30829b98aaada578afe0a9b1dced36e4c0f237f /Modules/_testcapimodule.c | |
parent | 2a358f862bb24ddfb26c45d7e4af87c073d4bc1f (diff) | |
download | cpython-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/_testcapimodule.c')
-rw-r--r-- | Modules/_testcapimodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 8ad54dd..06e6ebe 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -2277,7 +2277,7 @@ static int _pending_callback(void *arg) { /* we assume the argument is callable object to which we own a reference */ PyObject *callable = (PyObject *)arg; - PyObject *r = PyObject_CallObject(callable, NULL); + PyObject *r = _PyObject_CallNoArg(callable); Py_DECREF(callable); Py_XDECREF(r); return r != NULL ? 0 : -1; |