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:
Guido van Rossum 1998-09-21 14:47:16 +00:00
parent 1b236768e7
commit 469067800b
1 changed files with 0 additions and 2 deletions

View File

@ -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;