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 /Modules/_threadmodule.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 'Modules/_threadmodule.c')
-rw-r--r-- | Modules/_threadmodule.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c index 8be9306..bf25a19 100644 --- a/Modules/_threadmodule.c +++ b/Modules/_threadmodule.c @@ -994,8 +994,7 @@ t_bootstrap(void *boot_raw) _PyThreadState_Init(tstate); PyEval_AcquireThread(tstate); nb_threads++; - res = PyEval_CallObjectWithKeywords( - boot->func, boot->args, boot->keyw); + res = PyObject_Call(boot->func, boot->args, boot->keyw); if (res == NULL) { if (PyErr_ExceptionMatches(PyExc_SystemExit)) PyErr_Clear(); |