summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/test/echo.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-06-12 10:49:56 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-06-12 10:49:56 (GMT)
commit7fb76e0f8af58d437dc4801e1899eba4d633a31d (patch)
tree7cb8b532203aa509c979c5a57876a362d75675e4 /Mac/Lib/test/echo.py
parentcaa7c46ac4152748daad7ae06d7a555838548d17 (diff)
downloadcpython-7fb76e0f8af58d437dc4801e1899eba4d633a31d.zip
cpython-7fb76e0f8af58d437dc4801e1899eba4d633a31d.tar.gz
cpython-7fb76e0f8af58d437dc4801e1899eba4d633a31d.tar.bz2
Replaced MacOS.EnableAppswitch by MacOS.SchedParams
Diffstat (limited to 'Mac/Lib/test/echo.py')
-rw-r--r--Mac/Lib/test/echo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Lib/test/echo.py b/Mac/Lib/test/echo.py
index 7376238..1bad3e1 100644
--- a/Mac/Lib/test/echo.py
+++ b/Mac/Lib/test/echo.py
@@ -33,11 +33,11 @@ def mymessage(str):
def main():
echo = EchoServer()
- yield = MacOS.EnableAppswitch(-1) # Disable Python's own "event handling"
+ saveparams = MacOS.SchedParams(0, 0) # Disable Python's own "event handling"
try:
echo.mainloop(everyEvent, 0)
finally:
- MacOS.EnableAppswitch(yield) # Let Python have a go at events
+ apply(MacOS.SchedParams, saveparams) # Let Python have a go at events
echo.close()