Skip to content

Commit 087b07c

Browse files
authored
Remove workaround code that is not needed since #1211 (#2683)
1 parent 7bd4b39 commit 087b07c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

include/pybind11/pybind11.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,15 +2089,7 @@ class gil_scoped_acquire {
20892089
}
20902090

20912091
if (release) {
2092-
/* Work around an annoying assertion in PyThreadState_Swap */
2093-
#if defined(Py_DEBUG)
2094-
PyInterpreterState *interp = tstate->interp;
2095-
tstate->interp = nullptr;
2096-
#endif
20972092
PyEval_AcquireThread(tstate);
2098-
#if defined(Py_DEBUG)
2099-
tstate->interp = interp;
2100-
#endif
21012093
}
21022094

21032095
inc_ref();

0 commit comments

Comments
 (0)