[backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder".

This commit is contained in:
Senthil Kumaran 2016-09-07 00:52:20 -07:00
parent e848cd7605
commit 32d374215a
8 changed files with 21 additions and 21 deletions

View file

@ -266,7 +266,6 @@ class mock_spec(_ImporterMock):
module = self.modules[fullname]
except KeyError:
return None
is_package = hasattr(module, '__path__')
spec = util.spec_from_file_location(
fullname, module.__file__, loader=self,
submodule_search_locations=getattr(module, '__path__', None))