mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Have mimify raise a DeprecationWarning. The docs and PEP 4 have listed the
module as deprecated for a while.
This commit is contained in:
		
							parent
							
								
									90134c9a05
								
							
						
					
					
						commit
						c249bdab92
					
				
					 4 changed files with 9 additions and 0 deletions
				
			
		|  | @ -29,6 +29,10 @@ | |||
| 
 | ||||
| import re | ||||
| 
 | ||||
| import warnings | ||||
| warnings.warn("the mimify module is deprecated; use the email package instead", | ||||
|                 DeprecationWarning, 2) | ||||
| 
 | ||||
| __all__ = ["mimify","unmimify","mime_encode_header","mime_decode_header"] | ||||
| 
 | ||||
| qp = re.compile('^content-transfer-encoding:\\s*quoted-printable', re.I) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brett Cannon
						Brett Cannon