diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-17 13:19:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-17 13:19:28 (GMT) |
commit | 17357108732c731d6ed4f2bd123ee6ba1ff6891b (patch) | |
tree | 397113da596c3a246d6022324123933d613316ba /Python/pystate.c | |
parent | c5b750dc0b4d4e58047c9d93c635fa26b06562f7 (diff) | |
download | cpython-17357108732c731d6ed4f2bd123ee6ba1ff6891b.zip cpython-17357108732c731d6ed4f2bd123ee6ba1ff6891b.tar.gz cpython-17357108732c731d6ed4f2bd123ee6ba1ff6891b.tar.bz2 |
gh-77782: Py_FdIsInteractive() now uses PyConfig.interactive (#93916)
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index df56c05..3cc7613 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -2136,6 +2136,7 @@ _Py_GetConfig(void) { assert(PyGILState_Check()); PyThreadState *tstate = _PyThreadState_GET(); + _Py_EnsureTstateNotNULL(tstate); return _PyInterpreterState_GetConfig(tstate->interp); } |