Commit ce01c019 authored by Batuhan Taskaya's avatar Batuhan Taskaya

add docstring to find_module

parent 65fe7abe
...@@ -17,8 +17,7 @@ PY_FROZEN = 7 ...@@ -17,8 +17,7 @@ PY_FROZEN = 7
def find_module(module, paths=None): def find_module(module, paths=None):
""" """Just like 'imp.find_module()', but with package support"""
"""
spec = importlib.util.find_spec(module, paths) spec = importlib.util.find_spec(module, paths)
if spec is None: if spec is None:
raise ImportError("Can't find %s" % module) raise ImportError("Can't find %s" % module)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment