mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +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 @@ def GetSource(self, _object=None, _attributes={}, **_arguments): | |||
|         _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 @@ def PrintBrowserWindow(self, _object=None, _attributes={}, **_arguments): | |||
|         _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 @@ def do_script(self, _object, _attributes={}, **_arguments): | |||
|         _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 @@ def Open_bookmark(self, _object=None, _attributes={}, **_arguments): | |||
|         _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 @@ def open(self, _object, _attributes={}, **_arguments): | |||
|         _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 @@ def print_(self, _object, _attributes={}, **_arguments): | |||
|         _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 @@ def quit(self, _no_object=None, _attributes={}, **_arguments): | |||
|         _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 @@ def run(self, _no_object=None, _attributes={}, **_arguments): | |||
|         _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 @@ def get(self, _object, _attributes={}, **_arguments): | |||
|         _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 @@ def GetURL(self, _object, _attributes={}, **_arguments): | |||
|         _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 @@ def Activate(self, _object=None, _attributes={}, **_arguments): | |||
|         _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 @@ def CloseAllWindows(self, _no_object=None, _attributes={}, **_arguments): | |||
|         _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 @@ def CloseWindow(self, _no_object=None, _attributes={}, **_arguments): | |||
|         _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 @@ def GetWindowInfo(self, _object, _attributes={}, **_arguments): | |||
|         _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 @@ def ListWindows(self, _no_object=None, _attributes={}, **_arguments): | |||
|         _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 @@ def OpenURL(self, _object, _attributes={}, **_arguments): | |||
|         _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 @@ def ParseAnchor(self, _object, _attributes={}, **_arguments): | |||
|         _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 @@ def ShowFile(self, _object, _attributes={}, **_arguments): | |||
|         _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
	
	 Collin Winter
						Collin Winter