mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 01:04:34 +03:00
remove redundant str() call
This commit is contained in:
parent
1328c9fd14
commit
acc391c2a8
|
@ -1070,7 +1070,7 @@ def import_file(name: str, loc: Union[str, Path]) -> ModuleType:
|
|||
RETURNS: The loaded module.
|
||||
"""
|
||||
loc = str(loc)
|
||||
spec = importlib.util.spec_from_file_location(name, str(loc))
|
||||
spec = importlib.util.spec_from_file_location(name, loc)
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(module)
|
||||
return module
|
||||
|
|
Loading…
Reference in New Issue
Block a user