remove redundant str() call

This commit is contained in:
svlandeg 2020-10-02 11:05:59 +02:00
parent 1328c9fd14
commit acc391c2a8

View File

@ -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