pull/1042/merge
Sergey 2 days ago committed by GitHub
commit 0061fb91f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -146,7 +146,11 @@ def is_stdlib_name(modname):
return False
# six installs crap with no __file__
modpath = os.path.abspath(getattr(module, '__file__', ''))
path = getattr(module, '__file__', '')
if path is None:
path = ''
modpath = os.path.abspath(path)
return is_stdlib_path(modpath)

Loading…
Cancel
Save