summaryrefslogtreecommitdiff
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-02-16 09:26:01 +0900
committerGitHub <noreply@github.com>2017-02-16 09:26:01 +0900
commit72dccde884d89586b0cafd990675b7e21720a81f (patch)
treeb0a57ee76f067c30869089792f385d950dcf22d5 /Modules/_testcapimodule.c
parent72e81d00eee685cfe33aaddf2aa9feef2d07591f (diff)
downloadcpython-git-72dccde884d89586b0cafd990675b7e21720a81f.tar.gz
bpo-29548: Fix some inefficient call API usage (GH-97)
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 03a4acbc79..11015df011 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -3070,7 +3070,7 @@ slot_tp_del(PyObject *self)
/* Execute __del__ method, if any. */
del = _PyObject_LookupSpecial(self, &PyId___tp_del__);
if (del != NULL) {
- res = PyEval_CallObject(del, NULL);
+ res = _PyObject_CallNoArg(del);
if (res == NULL)
PyErr_WriteUnraisable(del);
else