mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module.
This commit is contained in:
		
							parent
							
								
									8b01140d2c
								
							
						
					
					
						commit
						c756d00cf2
					
				
					 10 changed files with 52 additions and 81 deletions
				
			
		|  | @ -167,8 +167,8 @@ def test_libref_examples(self): | |||
|         ['a1', 'a2'] | ||||
|         """ | ||||
| 
 | ||||
|         import new | ||||
|         m = new.module("libreftest", s) | ||||
|         import types | ||||
|         m = types.ModuleType("libreftest", s) | ||||
|         run_doctest(m, verbose) | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Christian Heimes
						Christian Heimes