mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-29548: Fix some inefficient call API usage (GH-97)
This commit is contained in:
parent
72e81d00ee
commit
72dccde884
7 changed files with 23 additions and 40 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue