diff options
| author | Collin Winter <collinw@gmail.com> | 2007-08-23 00:01:55 (GMT) |
|---|---|---|
| committer | Collin Winter <collinw@gmail.com> | 2007-08-23 00:01:55 (GMT) |
| commit | e45be28be665a04aef0d0a7444ba27fde2dd2d5f (patch) | |
| tree | 12b6261b32a5913ed104704734e7b7a15cd74e69 /Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py | |
| parent | cfe02a498b107a6436003e2bf7a48aefe4e3d59f (diff) | |
| download | cpython-e45be28be665a04aef0d0a7444ba27fde2dd2d5f.zip cpython-e45be28be665a04aef0d0a7444ba27fde2dd2d5f.tar.gz cpython-e45be28be665a04aef0d0a7444ba27fde2dd2d5f.tar.bz2 | |
Convert raise statements in Lib/plat-{mac,os2emx}.
Diffstat (limited to 'Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py')
| -rw-r--r-- | Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py b/Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py index 318250f..7d5abbd 100644 --- a/Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py +++ b/Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py @@ -17,14 +17,14 @@ class builtin_Suite_Events: _code = 'aevt' _subcode = 'odoc' - if _arguments: raise TypeError, 'No optional args expected' + if _arguments: raise TypeError('No optional args expected') _arguments['----'] = _object _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) + raise aetools.Error(aetools.decodeerror(_arguments)) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -36,14 +36,14 @@ class builtin_Suite_Events: _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') + if _no_object != None: raise TypeError('No direct arg expected') _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) + raise aetools.Error(aetools.decodeerror(_arguments)) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -55,14 +55,14 @@ class builtin_Suite_Events: _code = 'aevt' _subcode = 'rapp' - 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') + if _no_object != None: raise TypeError('No direct arg expected') _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) + raise aetools.Error(aetools.decodeerror(_arguments)) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -75,14 +75,14 @@ class builtin_Suite_Events: _code = 'aevt' _subcode = 'pdoc' - if _arguments: raise TypeError, 'No optional args expected' + if _arguments: raise TypeError('No optional args expected') _arguments['----'] = _object _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) + raise aetools.Error(aetools.decodeerror(_arguments)) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] @@ -100,14 +100,14 @@ class builtin_Suite_Events: _subcode = 'quit' aetools.keysubst(_arguments, self._argmap_quit) - if _no_object != None: raise TypeError, 'No direct arg expected' + if _no_object != None: raise TypeError('No direct arg expected') aetools.enumsubst(_arguments, 'savo', _Enum_savo) _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) if _arguments.get('errn', 0): - raise aetools.Error, aetools.decodeerror(_arguments) + raise aetools.Error(aetools.decodeerror(_arguments)) # XXXX Optionally decode result if _arguments.has_key('----'): return _arguments['----'] |
