mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
bpo-36710: Use tstate in pylifecycle.c (GH-14249)
In pylifecycle.c: pass tstate argument, rather than interp argument, to functions.
This commit is contained in:
parent
35068bd059
commit
b45d259bdd
8 changed files with 121 additions and 109 deletions
|
@ -2769,11 +2769,11 @@ static struct PyModuleDef builtinsmodule = {
|
|||
|
||||
|
||||
PyObject *
|
||||
_PyBuiltin_Init(void)
|
||||
_PyBuiltin_Init(PyThreadState *tstate)
|
||||
{
|
||||
PyObject *mod, *dict, *debug;
|
||||
|
||||
const PyConfig *config = &_PyInterpreterState_GET_UNSAFE()->config;
|
||||
const PyConfig *config = &tstate->interp->config;
|
||||
|
||||
if (PyType_Ready(&PyFilter_Type) < 0 ||
|
||||
PyType_Ready(&PyMap_Type) < 0 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue