mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Add a deprecation warning to this module.
Importing it typically fails anyway (no TZ variable defined), so this is no great loss.
This commit is contained in:
		
							parent
							
								
									44f5f8fb26
								
							
						
					
					
						commit
						d0926940b7
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -3,6 +3,11 @@ | |||
| # XXX Unfinished. | ||||
| # XXX Only the typical form "XXXhhYYY;ddd/hh,ddd/hh" is currently supported. | ||||
| 
 | ||||
| import warnings | ||||
| warnings.warn( | ||||
|     "The tzparse module is obsolete and will disappear in the future", | ||||
|     DeprecationWarning) | ||||
| 
 | ||||
| tzpat = ('^([A-Z][A-Z][A-Z])([-+]?[0-9]+)([A-Z][A-Z][A-Z]);' | ||||
|           '([0-9]+)/([0-9]+),([0-9]+)/([0-9]+)$') | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum