mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Remove imports of 'warnings' that are no longer needed in dummy_thread,
filecmp, and shelve.
This commit is contained in:
		
							parent
							
								
									313bda12e8
								
							
						
					
					
						commit
						25c9d6aa00
					
				
					 4 changed files with 2 additions and 3 deletions
				
			
		|  | @ -17,7 +17,6 @@ | |||
|            'interrupt_main', 'LockType'] | ||||
| 
 | ||||
| import traceback as _traceback | ||||
| import warnings | ||||
| 
 | ||||
| class error(Exception): | ||||
|     """Dummy implementation of thread.error.""" | ||||
|  |  | |||
|  | @ -11,7 +11,6 @@ | |||
| 
 | ||||
| import os | ||||
| import stat | ||||
| import warnings | ||||
| from itertools import ifilter, ifilterfalse, imap, izip | ||||
| 
 | ||||
| __all__ = ["cmp","dircmp","cmpfiles"] | ||||
|  |  | |||
|  | @ -69,7 +69,6 @@ | |||
|     from StringIO import StringIO | ||||
| 
 | ||||
| import UserDict | ||||
| import warnings | ||||
| 
 | ||||
| __all__ = ["Shelf","BsdDbShelf","DbfilenameShelf","open"] | ||||
| 
 | ||||
|  |  | |||
|  | @ -48,6 +48,8 @@ Core and Builtins | |||
| Library | ||||
| ------- | ||||
| 
 | ||||
| - Remove unneeded imports of 'warnings' from shelve, filecmp, and dummy_thread. | ||||
| 
 | ||||
| - Issue #3575: Incremental decoder's decode function now takes bytearray | ||||
|   by using 's*' instead of 't#'. | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brett Cannon
						Brett Cannon