summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-20 00:05:23 +0200
committerGitHub <noreply@github.com>2019-06-20 00:05:23 +0200
commitb45d259bdda1de2b2d369458a9ad2e4d6f750687 (patch)
tree7e4b308f1729b757ebead804cde061bb06832cab /Python/sysmodule.c
parent35068bd059a3d9bff084ca9dcb04d51185b9ec3b (diff)
downloadcpython-git-b45d259bdda1de2b2d369458a9ad2e4d6f750687.tar.gz
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/sysmodule.c')
-rw-r--r--Python/sysmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index fcbcb3b24d..8da839c5a5 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -3036,10 +3036,10 @@ error:
/* Create sys module without all attributes: _PySys_InitMain() should be called
later to add remaining attributes. */
PyStatus
-_PySys_Create(_PyRuntimeState *runtime, PyInterpreterState *interp,
+_PySys_Create(_PyRuntimeState *runtime, PyThreadState *tstate,
PyObject **sysmod_p)
{
- PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime);
+ PyInterpreterState *interp = tstate->interp;
PyObject *modules = PyDict_New();
if (modules == NULL) {