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 4, 2023
1 parent 43a6abb commit a2aa811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skbase/lookup/_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def _import_module(
if isinstance(module, str):
imported_mod = importlib.import_module(module)
elif isinstance(module, importlib.machinery.SourceFileLoader):
spec = importlib.spec_from_file_location(module.name, module.path)
spec = importlib.util.spec_from_file_location(module.name, module.path)
imported_mod = importlib.util.module_from_spec(spec)

loader = spec.loader
Expand Down

0 comments on commit a2aa811

Please sign in to comment.