mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
[backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder".
This commit is contained in:
parent
e848cd7605
commit
32d374215a
8 changed files with 21 additions and 21 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue