From f38ab4c82caa0149c030cf366bf4cf60c829b179 Mon Sep 17 00:00:00 2001 From: albanD Date: Thu, 19 Nov 2020 19:48:52 -0500 Subject: [PATCH] Remove workaround code that is not needed since #1211 --- include/pybind11/pybind11.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index e2ddda020b..96f3ff805b 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -2089,15 +2089,7 @@ class gil_scoped_acquire { } if (release) { - /* Work around an annoying assertion in PyThreadState_Swap */ - #if defined(Py_DEBUG) - PyInterpreterState *interp = tstate->interp; - tstate->interp = nullptr; - #endif PyEval_AcquireThread(tstate); - #if defined(Py_DEBUG) - tstate->interp = interp; - #endif } inc_ref();