Fixed the last changeset.
This commit is contained in:
parent
9554844e2a
commit
a293b99b21
1 changed files with 2 additions and 2 deletions
|
|
@ -667,8 +667,8 @@ def _matching_loader_thinks_module_is_package(loader, mod_name):
|
||||||
# importlib's namespace loaders do not have this functionality but
|
# importlib's namespace loaders do not have this functionality but
|
||||||
# all the modules it loads are packages, so we can take advantage of
|
# all the modules it loads are packages, so we can take advantage of
|
||||||
# this information.
|
# this information.
|
||||||
elif (loader.__module__ == '_frozen_importlib' and
|
elif (loader.__class__.__module__ == '_frozen_importlib' and
|
||||||
loader.__name__ == 'NamespaceLoader'):
|
loader.__class__.__name__ == 'NamespaceLoader'):
|
||||||
return True
|
return True
|
||||||
# Otherwise we need to fail with an error that explains what went
|
# Otherwise we need to fail with an error that explains what went
|
||||||
# wrong.
|
# wrong.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue