mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Patch #729300: Disable error message if Python is not built for threads.
This commit is contained in:
parent
fccac2e61a
commit
9e29625a1b
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ PyThreadState_Swap(PyThreadState *new)
|
|||
to be used for a thread. Check this the best we can in debug
|
||||
builds.
|
||||
*/
|
||||
#if defined(Py_DEBUG)
|
||||
#if defined(Py_DEBUG) && defined(WITH_THREAD)
|
||||
if (new) {
|
||||
PyThreadState *check = PyGILState_GetThisThreadState();
|
||||
if (check && check != new)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue