Skip to content

Commit

Permalink
Update _lookup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fkiraly committed Oct 3, 2023
1 parent 10170a0 commit edc2014
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions skbase/lookup/_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,7 @@ def _import_module(
if isinstance(module, str):
imported_mod = importlib.import_module(module)
elif isinstance(module, importlib.machinery.SourceFileLoader):
spec = importlib.machinery.ModuleSpec(
name=module.name,
loader=module,
origin=module.path,
)
spec = importlib.util.spec_from_loader(module.name, module)
imported_mod = importlib.util.module_from_spec(spec)
exc = None
except Exception as e:
Expand Down

0 comments on commit edc2014

Please sign in to comment.