summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/toolbox/Required_Suite.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-10-09 23:09:23 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-10-09 23:09:23 (GMT)
commit732151473b9528302518c54a48e5767bc7746200 (patch)
treea389819ea5b17bf848c85eb8219d2b9cb6416a20 /Mac/Lib/toolbox/Required_Suite.py
parenta1db48b75b88b1fdb36b96dd3dac59abfc1e9abe (diff)
downloadcpython-732151473b9528302518c54a48e5767bc7746200.zip
cpython-732151473b9528302518c54a48e5767bc7746200.tar.gz
cpython-732151473b9528302518c54a48e5767bc7746200.tar.bz2
Fixed bug in optional argument error checking (and generated all
suites anew).
Diffstat (limited to 'Mac/Lib/toolbox/Required_Suite.py')
-rw-r--r--Mac/Lib/toolbox/Required_Suite.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Lib/toolbox/Required_Suite.py b/Mac/Lib/toolbox/Required_Suite.py
index 9ef255e..91e1d2c 100644
--- a/Mac/Lib/toolbox/Required_Suite.py
+++ b/Mac/Lib/toolbox/Required_Suite.py
@@ -25,9 +25,9 @@ class Required_Suite:
_code = 'aevt'
_subcode = 'odoc'
+ if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object
- if _arguments: raise TypeError, 'No optional args expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
@@ -45,9 +45,9 @@ class Required_Suite:
_code = 'aevt'
_subcode = 'pdoc'
+ if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object
- if _arguments: raise TypeError, 'No optional args expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
@@ -64,9 +64,9 @@ class Required_Suite:
_code = 'aevt'
_subcode = 'quit'
+ if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
- if _arguments: raise TypeError, 'No optional args expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
@@ -83,9 +83,9 @@ class Required_Suite:
_code = 'aevt'
_subcode = 'oapp'
+ if _arguments: raise TypeError, 'No optional args expected'
if _no_object != None: raise TypeError, 'No direct arg expected'
- if _arguments: raise TypeError, 'No optional args expected'
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)