mirror of https://github.com/python/cpython
Get rid of the test for non-NULL thread state in EventHook; it can be
triggered in situations that are not an error.
This commit is contained in:
parent
1b236768e7
commit
469067800b
|
@ -1899,8 +1899,6 @@ EventHook()
|
|||
#ifndef MS_WINDOWS
|
||||
FHANDLE tfile;
|
||||
#endif
|
||||
if (PyThreadState_Swap(NULL) != NULL)
|
||||
Py_FatalError("EventHook with non-NULL tstate\n");
|
||||
PyEval_RestoreThread(event_tstate);
|
||||
stdin_ready = 0;
|
||||
errorInCmd = 0;
|
||||
|
|
Loading…
Reference in New Issue