diff options
| author | INADA Naoki <methane@users.noreply.github.com> | 2017-02-16 09:26:01 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-16 09:26:01 +0900 |
| commit | 72dccde884d89586b0cafd990675b7e21720a81f (patch) | |
| tree | b0a57ee76f067c30869089792f385d950dcf22d5 /Modules/_testcapimodule.c | |
| parent | 72e81d00eee685cfe33aaddf2aa9feef2d07591f (diff) | |
| download | cpython-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.c | 2 |
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 |
