summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/test
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
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')
-rw-r--r--Mac/Lib/test/AEservertest.py4
-rw-r--r--Mac/Lib/test/ctbtest.py2
-rw-r--r--Mac/Lib/test/echo.py4
-rw-r--r--Mac/Lib/test/tae.py2
4 files changed, 6 insertions, 6 deletions
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 myaskstring(str, default=''):
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()
diff --git a/Mac/Lib/test/ctbtest.py b/Mac/Lib/test/ctbtest.py
index 0f3cd90..cb1b506 100644
--- a/Mac/Lib/test/ctbtest.py
+++ b/Mac/Lib/test/ctbtest.py
@@ -16,7 +16,7 @@ def main():
print 'Communications Toolbox not available'
sys.exit(1)
# Disable Python's event processing (we do that)
- MacOS.EnableAppswitch(0)
+ MacOS.SchedParams(1, 0)
print 'Minimal terminal emulator V1.0'
print '(type command-Q to exit)'
print
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()
diff --git a/Mac/Lib/test/tae.py b/Mac/Lib/test/tae.py
index 73c36b9..4789672 100644
--- a/Mac/Lib/test/tae.py
+++ b/Mac/Lib/test/tae.py
@@ -11,7 +11,7 @@ import macfs
import sys
import MacOS
-MacOS.EnableAppswitch(0)
+MacOS.SchedParams(1, 0)
def aehandler(request, reply):
tosend = []