summaryrefslogtreecommitdiffstats
path: root/Modules/_threadmodule.c
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-02-16 00:26:01 (GMT)
committerGitHub <noreply@github.com>2017-02-16 00:26:01 (GMT)
commit72dccde884d89586b0cafd990675b7e21720a81f (patch)
treeb0a57ee76f067c30869089792f385d950dcf22d5 /Modules/_threadmodule.c
parent72e81d00eee685cfe33aaddf2aa9feef2d07591f (diff)
downloadcpython-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.c3
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();