From: Guido van Rossum Date: Mon, 21 Sep 1998 14:47:16 +0000 (+0000) Subject: Get rid of the test for non-NULL thread state in EventHook; it can be X-Git-Tag: v1.5.2a2~265 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=469067800b0a34fea4b9d593770784ce1e40de58;p=thirdparty%2FPython%2Fcpython.git Get rid of the test for non-NULL thread state in EventHook; it can be triggered in situations that are not an error. --- diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 8f1e4f7317c1..f619032ea890 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -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;