add docstring to find_module

This commit is contained in:
Batuhan Taskaya 2019-10-28 10:59:21 +03:00
parent 65fe7abeab
commit ce01c0199f
1 changed files with 1 additions and 2 deletions

View File

@ -17,8 +17,7 @@ PY_FROZEN = 7
def find_module(module, paths=None):
"""
"""
"""Just like 'imp.find_module()', but with package support"""
spec = importlib.util.find_spec(module, paths)
if spec is None:
raise ImportError("Can't find %s" % module)