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/SystemEvents/Power_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/SystemEvents/Power_Suite.py')
| -rw-r--r-- | Lib/plat-mac/lib-scriptpackages/SystemEvents/Power_Suite.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/plat-mac/lib-scriptpackages/SystemEvents/Power_Suite.py b/Lib/plat-mac/lib-scriptpackages/SystemEvents/Power_Suite.py index bfdf536..dfe535e 100644 --- a/Lib/plat-mac/lib-scriptpackages/SystemEvents/Power_Suite.py +++ b/Lib/plat-mac/lib-scriptpackages/SystemEvents/Power_Suite.py @@ -20,14 +20,14 @@ class Power_Suite_Events: _code = 'fndr' _subcode = 'rest' - 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['----'] @@ -40,14 +40,14 @@ class Power_Suite_Events: _code = 'fndr' _subcode = 'shut' - 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['----'] @@ -60,14 +60,14 @@ class Power_Suite_Events: _code = 'fndr' _subcode = 'slep' - 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['----'] |
