mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-29 17:33:10 +03:00
Fix typo
This commit is contained in:
parent
b8e1603cc4
commit
2d126a00ae
|
@ -109,7 +109,7 @@ def import_file(name, loc):
|
||||||
if is_python2:
|
if is_python2:
|
||||||
return imp.load_source(name, loc)
|
return imp.load_source(name, loc)
|
||||||
else:
|
else:
|
||||||
spec = importlib.util.spec_from_file_location(name, str(init_file))
|
spec = importlib.util.spec_from_file_location(name, str(loc))
|
||||||
module = importlib.util.module_from_spec(spec)
|
module = importlib.util.module_from_spec(spec)
|
||||||
spec.loader.exec_module(module)
|
spec.loader.exec_module(module)
|
||||||
return module
|
return module
|
||||||
|
|
Loading…
Reference in New Issue
Block a user