diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2017-02-16 00:26:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-16 00:26:01 (GMT) |
commit | 72dccde884d89586b0cafd990675b7e21720a81f (patch) | |
tree | b0a57ee76f067c30869089792f385d950dcf22d5 /Objects/abstract.c | |
parent | 72e81d00eee685cfe33aaddf2aa9feef2d07591f (diff) | |
download | cpython-72dccde884d89586b0cafd990675b7e21720a81f.zip cpython-72dccde884d89586b0cafd990675b7e21720a81f.tar.gz cpython-72dccde884d89586b0cafd990675b7e21720a81f.tar.bz2 |
bpo-29548: Fix some inefficient call API usage (GH-97)
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index 589d9e8..4a75b92 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -1329,7 +1329,7 @@ PyNumber_Long(PyObject *o) } trunc_func = _PyObject_LookupSpecial(o, &PyId___trunc__); if (trunc_func) { - result = PyEval_CallObject(trunc_func, NULL); + result = _PyObject_CallNoArg(trunc_func); Py_DECREF(trunc_func); if (result == NULL || PyLong_CheckExact(result)) { return result; |