diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-23 00:01:55 +0000 |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-23 00:01:55 +0000 |
commit | 985c3742ef29fbec64028248f3bff59688a39705 (patch) | |
tree | 5225c531bc4dd90d05324b20b5f45325c64f5141 /Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py | |
parent | 1accab6addf36a53456245665bb5c394c4b6c8f3 (diff) | |
download | cpython-985c3742ef29fbec64028248f3bff59688a39705.tar.gz |
Convert raise statements in Lib/plat-{mac,os2emx}.
Diffstat (limited to 'Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py')
-rw-r--r-- | Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py b/Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py index 7767305cb3..a0c84b20fd 100644 --- a/Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py +++ b/Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py @@ -25,13 +25,13 @@ class PowerPlant_Events: _subcode = 'sttg' aetools.keysubst(_arguments, self._argmap_SwitchTellTarget) - if _no_object != None: raise TypeError, 'No direct arg 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['----'] @@ -56,7 +56,7 @@ class PowerPlant_Events: _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['----'] |