Commit 087b07c8 by albanD Committed by GitHub

Remove workaround code that is not needed since #1211 (#2683)

parent 7bd4b397
...@@ -2089,15 +2089,7 @@ public: ...@@ -2089,15 +2089,7 @@ public:
} }
if (release) { 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); PyEval_AcquireThread(tstate);
#if defined(Py_DEBUG)
tstate->interp = interp;
#endif
} }
inc_ref(); inc_ref();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment