]> granicus.if.org Git - python/commitdiff
Get rid of the test for non-NULL thread state in EventHook; it can be
authorGuido van Rossum <guido@python.org>
Mon, 21 Sep 1998 14:47:16 +0000 (14:47 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 21 Sep 1998 14:47:16 +0000 (14:47 +0000)
triggered in situations that are not an error.

Modules/_tkinter.c

index 8f1e4f7317c1636a2a622ea44adc61b1b787c848..f619032ea890468809849b9728f62c7d3b6ed195 100644 (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;