diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-20 00:05:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 00:05:23 +0200 |
commit | b45d259bdda1de2b2d369458a9ad2e4d6f750687 (patch) | |
tree | 7e4b308f1729b757ebead804cde061bb06832cab /Python/bltinmodule.c | |
parent | Add missing single quote in io.TextIOWrapper.reconfigure documentation (GH-14... (diff) | |
download | cpython-b45d259bdda1de2b2d369458a9ad2e4d6f750687.tar.gz cpython-b45d259bdda1de2b2d369458a9ad2e4d6f750687.tar.bz2 cpython-b45d259bdda1de2b2d369458a9ad2e4d6f750687.zip |
bpo-36710: Use tstate in pylifecycle.c (GH-14249)
In pylifecycle.c: pass tstate argument, rather than interp argument,
to functions.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index c3e30593475..ae2a5187d98 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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 || |