mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Convert raise statements in Lib/plat-{mac,os2emx}.
This commit is contained in:
parent
cfe02a498b
commit
e45be28be6
51 changed files with 506 additions and 506 deletions
|
@ -21,14 +21,14 @@ class Microsoft_Internet_Explorer_Events:
|
|||
_code = 'MSIE'
|
||||
_subcode = 'SORC'
|
||||
|
||||
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['----']
|
||||
|
@ -41,14 +41,14 @@ class Microsoft_Internet_Explorer_Events:
|
|||
_code = 'misc'
|
||||
_subcode = 'pWND'
|
||||
|
||||
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['----']
|
||||
|
@ -74,7 +74,7 @@ class Microsoft_Internet_Explorer_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['----']
|
||||
|
|
|
@ -20,14 +20,14 @@ class Netscape_Suite_Events:
|
|||
_code = 'MOSS'
|
||||
_subcode = 'book'
|
||||
|
||||
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['----']
|
||||
|
|
|
@ -21,14 +21,14 @@ class Required_Suite_Events(Required_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['----']
|
||||
|
@ -41,14 +41,14 @@ class Required_Suite_Events(Required_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['----']
|
||||
|
@ -60,14 +60,14 @@ class Required_Suite_Events(Required_Suite_Events):
|
|||
_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')
|
||||
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['----']
|
||||
|
@ -79,14 +79,14 @@ class Required_Suite_Events(Required_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['----']
|
||||
|
|
|
@ -33,7 +33,7 @@ class Standard_Suite_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['----']
|
||||
|
|
|
@ -32,7 +32,7 @@ class URL_Suite_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['----']
|
||||
|
|
|
@ -21,14 +21,14 @@ class Web_Browser_Suite_Events:
|
|||
_code = 'WWW!'
|
||||
_subcode = 'ACTV'
|
||||
|
||||
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['----']
|
||||
|
@ -41,14 +41,14 @@ class Web_Browser_Suite_Events:
|
|||
_code = 'WWW!'
|
||||
_subcode = 'CLSA'
|
||||
|
||||
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['----']
|
||||
|
@ -69,13 +69,13 @@ class Web_Browser_Suite_Events:
|
|||
_subcode = 'CLOS'
|
||||
|
||||
aetools.keysubst(_arguments, self._argmap_CloseWindow)
|
||||
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['----']
|
||||
|
@ -89,14 +89,14 @@ class Web_Browser_Suite_Events:
|
|||
_code = 'WWW!'
|
||||
_subcode = 'WNFO'
|
||||
|
||||
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['----']
|
||||
|
@ -109,14 +109,14 @@ class Web_Browser_Suite_Events:
|
|||
_code = 'WWW!'
|
||||
_subcode = 'LSTW'
|
||||
|
||||
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['----']
|
||||
|
@ -149,7 +149,7 @@ class Web_Browser_Suite_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['----']
|
||||
|
@ -175,7 +175,7 @@ class Web_Browser_Suite_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['----']
|
||||
|
@ -204,7 +204,7 @@ class Web_Browser_Suite_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['----']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue