mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
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
1 changed files with 0 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue