Kaydet (Commit) 46906780 authored tarafından Guido van Rossum's avatar Guido van Rossum

Get rid of the test for non-NULL thread state in EventHook; it can be

triggered in situations that are not an error.
üst 1b236768
......@@ -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;
......
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