mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Merge fix for #16163 from 3.3
This commit is contained in:
		
						commit
						685bd4a37a
					
				
					 3 changed files with 44 additions and 2 deletions
				
			
		|  | @ -449,8 +449,8 @@ def iter_importers(fullname=""): | |||
|     if '.' in fullname: | ||||
|         # Get the containing package's __path__ | ||||
|         pkg_name = fullname.rpartition(".")[0] | ||||
|         pkg = importlib.import_module(pkg) | ||||
|         path = getattr(sys.modules[pkg], '__path__', None) | ||||
|         pkg = importlib.import_module(pkg_name) | ||||
|         path = getattr(pkg, '__path__', None) | ||||
|         if path is None: | ||||
|             return | ||||
|     else: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nick Coghlan
						Nick Coghlan