bpo-29548: Fix some inefficient call API usage (GH-97)
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 @@
_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();