From acc391c2a841936b44e91a243f39ae864d661400 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Fri, 2 Oct 2020 11:05:59 +0200 Subject: [PATCH] remove redundant str() call --- spacy/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/util.py b/spacy/util.py index 1cc7abf57..d919b161e 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -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