mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	bpo-42403: Fix pyflakes warnings in importlib (GH-23396)
Remove unused imports and unused local variables.
This commit is contained in:
		
							parent
							
								
									bf9d70a1a5
								
							
						
					
					
						commit
						7d9d25dbed
					
				
					 3 changed files with 0 additions and 4 deletions
				
			
		|  | @ -1,5 +1,4 @@ | ||||||
| """Abstract base classes related to import.""" | """Abstract base classes related to import.""" | ||||||
| from . import _bootstrap |  | ||||||
| from . import _bootstrap_external | from . import _bootstrap_external | ||||||
| from . import machinery | from . import machinery | ||||||
| try: | try: | ||||||
|  |  | ||||||
|  | @ -1,7 +1,5 @@ | ||||||
| """The machinery of importlib: finders, loaders, hooks, etc.""" | """The machinery of importlib: finders, loaders, hooks, etc.""" | ||||||
| 
 | 
 | ||||||
| import _imp |  | ||||||
| 
 |  | ||||||
| from ._bootstrap import ModuleSpec | from ._bootstrap import ModuleSpec | ||||||
| from ._bootstrap import BuiltinImporter | from ._bootstrap import BuiltinImporter | ||||||
| from ._bootstrap import FrozenImporter | from ._bootstrap import FrozenImporter | ||||||
|  |  | ||||||
|  | @ -232,7 +232,6 @@ def __getattribute__(self, attr): | ||||||
|         # Figure out exactly what attributes were mutated between the creation |         # Figure out exactly what attributes were mutated between the creation | ||||||
|         # of the module and now. |         # of the module and now. | ||||||
|         attrs_then = self.__spec__.loader_state['__dict__'] |         attrs_then = self.__spec__.loader_state['__dict__'] | ||||||
|         original_type = self.__spec__.loader_state['__class__'] |  | ||||||
|         attrs_now = self.__dict__ |         attrs_now = self.__dict__ | ||||||
|         attrs_updated = {} |         attrs_updated = {} | ||||||
|         for key, value in attrs_now.items(): |         for key, value in attrs_now.items(): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner