summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-09-21 14:47:16 (GMT)
committerGuido van Rossum <guido@python.org>1998-09-21 14:47:16 (GMT)
commit469067800b0a34fea4b9d593770784ce1e40de58 (patch)
treeaf4f46a02e467c4c9a6b1f307d0abd6b82c5d531 /Modules
parent1b236768e70bcd626239eeeb18db170ae7cdf41e (diff)
downloadcpython-469067800b0a34fea4b9d593770784ce1e40de58.zip
cpython-469067800b0a34fea4b9d593770784ce1e40de58.tar.gz
cpython-469067800b0a34fea4b9d593770784ce1e40de58.tar.bz2
Get rid of the test for non-NULL thread state in EventHook; it can be
triggered in situations that are not an error.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_tkinter.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 8f1e4f7..f619032 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;