Skip to content

Commit 40407f7

Browse files
fix build
1 parent c6a7f91 commit 40407f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Include/internal/pycore_freelist.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ static inline struct _Py_freelists *
1818
_Py_freelists_GET(void)
1919
{
2020
#ifdef Py_DEBUG
21-
PyThreadState *tstate = _PyThreadState_GET();
22-
_Py_EnsureTstateNotNULL(tstate);
21+
_Py_AssertHoldsTstate();
2322
#endif
2423

2524
#ifdef Py_GIL_DISABLED

0 commit comments

Comments
 (0)