Replaced MacOS.EnableAppswitch by MacOS.SchedParams
diff --git a/Mac/Lib/test/AEservertest.py b/Mac/Lib/test/AEservertest.py
index 7513738..1e3e508 100644
--- a/Mac/Lib/test/AEservertest.py
+++ b/Mac/Lib/test/AEservertest.py
@@ -42,14 +42,14 @@
def main():
echo = EchoServer()
- yield = MacOS.EnableAppswitch(-1) # Disable Python's own "event handling"
+ savepars = MacOS.SchedParams(0, 0) # Disable Python's own "event handling"
try:
try:
echo.mainloop(everyEvent, 0)
except Quit:
pass
finally:
- MacOS.EnableAppswitch(yield) # Let Python have a go at events
+ apply(MacOS.SchedParams, savepars) # Let Python have a go at events
echo.close()