Skip to content

Commit 2b3d15a

Browse files
review
1 parent a2b1487 commit 2b3d15a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/internal/pycore_pystate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static inline PyInterpreterState* _PyInterpreterState_GET(void) {
209209
PyThreadState *tstate = _PyThreadState_GET();
210210
_Py_EnsureTstateNotNULL(tstate);
211211
#endif
212-
#if defined(HAVE_THREAD_LOCAL) && !defined(Py_BUILD_CORE_MODULE)
212+
#if !defined(Py_BUILD_CORE_MODULE)
213213
return _Py_tss_interp;
214214
#else
215215
return _PyThreadState_GET()->interp;

Python/pystate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ _Py_thread_local PyThreadState *_Py_tss_tstate = NULL;
7878
also known as a "gilstate." */
7979
_Py_thread_local PyThreadState *_Py_tss_gilstate = NULL;
8080

81-
/* The interpreter of the attached thread state */
81+
/* The interpreter of the attached thread state. */
8282
_Py_thread_local PyInterpreterState *_Py_tss_interp = NULL;
8383

8484
static inline PyThreadState *

0 commit comments

Comments
 (0)