Skip to content

Commit

Permalink
Fix VimPathFinder.find_spec (Python 3.4+)
Browse files Browse the repository at this point in the history
This implements the correct interface for a path entry finder.

Ref: https://docs.python.org/3.8/glossary.html#term-path-entry-finder
  • Loading branch information
blueyed committed May 5, 2018
1 parent f0c6ab0 commit 5b69f54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neovim/plugin/script_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ def find_module(fullname, path=None):
return None

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

def hook(path):
if path == nvim.VIM_SPECIAL_PATH:
Expand Down

0 comments on commit 5b69f54

Please sign in to comment.