mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Changed the new deprecation warning to show the
code _importing_ gopherlib instead of gopherlib's call to warnings.warn.
This commit is contained in:
		
							parent
							
								
									b6be87f9b0
								
							
						
					
					
						commit
						24f7cad6ca
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -3,7 +3,8 @@ | |||
| __all__ = ["send_selector","send_query"] | ||||
| 
 | ||||
| import warnings | ||||
| warnings.warn("the gopherlib module is deprecated", DeprecationWarning) | ||||
| warnings.warn("the gopherlib module is deprecated", DeprecationWarning, | ||||
|               stacklevel=2) | ||||
| 
 | ||||
| # Default selector, host and port | ||||
| DEF_SELECTOR = '1/' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Peters
						Tim Peters