Skip to content

Commit 5b69f54

Browse files
committed
Fix VimPathFinder.find_spec (Python 3.4+)
This implements the correct interface for a path entry finder. Ref: https://docs.python.org/3.8/glossary.html#term-path-entry-finder
1 parent f0c6ab0 commit 5b69f54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neovim/plugin/script_host.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ def find_module(fullname, path=None):
242242
return None
243243

244244
@staticmethod
245-
def find_spec(fullname, path=None, target=None):
245+
def find_spec(fullname, target=None):
246246
"""Method for Python 3.4+."""
247-
return PathFinder.find_spec(fullname, path or _get_paths(), target)
247+
return PathFinder.find_spec(fullname, _get_paths(), target)
248248

249249
def hook(path):
250250
if path == nvim.VIM_SPECIAL_PATH:

0 commit comments

Comments
 (0)