Commit 2f495292 authored by Batuhan Taskaya's avatar Batuhan Taskaya

remove _resolve

parent ce01c019
......@@ -63,13 +63,6 @@ def get_frozen_object(module, paths):
return spec.loader.get_code(_resolve(module))
def _resolve(spec):
return (
importlib.util.spec_from_loader('__init__.py', spec.loader)
if hasattr(spec, 'submodule_search_locations')
else spec
)
def _module_from_spec(spec):
if sys.version_info >= (3, 5):
return importlib.util.module_from_spec(spec)
......
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