Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 725935b commit 98b91d2Copy full SHA for 98b91d2
importlib_metadata/_compat.py
@@ -73,7 +73,7 @@ def disable_stdlib_finder():
73
"""
74
def matches(finder):
75
return (
76
- finder.__module__ == '_frozen_importlib_external'
+ getattr(finder, '__module__', None) == '_frozen_importlib_external'
77
and hasattr(finder, 'find_distributions')
78
)
79
for finder in filter(matches, sys.meta_path): # pragma: nocover
0 commit comments