mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	No need to import exceptions, they are builtins
This commit is contained in:
		
							parent
							
								
									6203196c7c
								
							
						
					
					
						commit
						4ce69a5b06
					
				
					 3 changed files with 4 additions and 7 deletions
				
			
		|  | @ -46,7 +46,6 @@ | |||
| sophisticated high-performance network servers and clients a snap. | ||||
| """ | ||||
| 
 | ||||
| import exceptions | ||||
| import select | ||||
| import socket | ||||
| import sys | ||||
|  | @ -61,7 +60,7 @@ | |||
| except NameError: | ||||
|     socket_map = {} | ||||
| 
 | ||||
| class ExitNow(exceptions.Exception): | ||||
| class ExitNow(Exception): | ||||
|     pass | ||||
| 
 | ||||
| def read(obj): | ||||
|  |  | |||
|  | @ -27,7 +27,7 @@ | |||
| 
 | ||||
| """#" | ||||
| 
 | ||||
| import codecs, exceptions, types, aliases | ||||
| import codecs, types, aliases | ||||
| 
 | ||||
| _cache = {} | ||||
| _unknown = '--unknown--' | ||||
|  | @ -40,8 +40,7 @@ | |||
|                       '                ') | ||||
| _aliases = aliases.aliases | ||||
| 
 | ||||
| class CodecRegistryError(exceptions.LookupError, | ||||
|                          exceptions.SystemError): | ||||
| class CodecRegistryError(LookupError, SystemError): | ||||
|     pass | ||||
| 
 | ||||
| def normalize_encoding(encoding): | ||||
|  |  | |||
|  | @ -7,13 +7,12 @@ | |||
| import os | ||||
| import sys | ||||
| import stat | ||||
| import exceptions | ||||
| from os.path import abspath | ||||
| 
 | ||||
| __all__ = ["copyfileobj","copyfile","copymode","copystat","copy","copy2", | ||||
|            "copytree","move","rmtree","Error"] | ||||
| 
 | ||||
| class Error(exceptions.EnvironmentError): | ||||
| class Error(EnvironmentError): | ||||
|     pass | ||||
| 
 | ||||
| def copyfileobj(fsrc, fdst, length=16*1024): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz