From b45d259bdda1de2b2d369458a9ad2e4d6f750687 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 20 Jun 2019 00:05:23 +0200 Subject: bpo-36710: Use tstate in pylifecycle.c (GH-14249) In pylifecycle.c: pass tstate argument, rather than interp argument, to functions. --- Python/sysmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/sysmodule.c') diff --git a/Python/sysmodule.c b/Python/sysmodule.c index fcbcb3b24d5..8da839c5a59 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) { -- cgit v1.2.3