summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1998-09-30 09:11:51 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1998-09-30 09:11:51 (GMT)
commite504fa289fcb4590afb4078d3267a7247f57eac5 (patch)
tree64b0ce67759feb74671b43c156d60940b6ea3311 /Mac
parentfda3aceb71e1b37f68b8c558c37b834b5a3c88fe (diff)
downloadcpython-e504fa289fcb4590afb4078d3267a7247f57eac5.zip
cpython-e504fa289fcb4590afb4078d3267a7247f57eac5.tar.gz
cpython-e504fa289fcb4590afb4078d3267a7247f57eac5.tar.bz2
Disable python event handling in mainloop (discovered by Tasselli Marco)
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Demo/cgi/realcgitest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Demo/cgi/realcgitest.py b/Mac/Demo/cgi/realcgitest.py
index ca846bf..5b45ed4 100644
--- a/Mac/Demo/cgi/realcgitest.py
+++ b/Mac/Demo/cgi/realcgitest.py
@@ -11,7 +11,9 @@ class CGITest(AEServer, MiniApplication):
self.installaehandler('aevt', 'oapp', self.open_app)
self.installaehandler('aevt', 'quit', self.quit)
self.installaehandler('WWW\275', 'sdoc', self.cgihandler)
+ oldparams = MacOS.SchedParams(0, 0)
self.mainloop()
+ apply(MacOS.SchedParams, oldparams)
def quit(self, **args):
self.quitting = 1