mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	issue13287 - Define __all__ for urllib.request and urllib.error and expose only
the relevant module. Other cleanup improvements. Patch by flox.
This commit is contained in:
		
							parent
							
								
									712b14fc2a
								
							
						
					
					
						commit
						6c5bd40a3e
					
				
					 4 changed files with 40 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -13,6 +13,9 @@
 | 
			
		|||
 | 
			
		||||
import urllib.response
 | 
			
		||||
 | 
			
		||||
__all__ = ['URLError', 'HTTPError', 'ContentTooShortError']
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# do these error classes make sense?
 | 
			
		||||
# make sure all of the IOError stuff is overridden.  we just want to be
 | 
			
		||||
# subtypes.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue