Skip to content

Commit

Permalink
fix: undefined name 'original_find_module'
Browse files Browse the repository at this point in the history
pynvim/compat.py:24:12: F821 undefined name 'original_find_module'

regression from eaa862d
  • Loading branch information
justinmk committed Jul 14, 2023
1 parent 8e1ed5e commit 919217d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions pynvim/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def find_module(fullname, path): # type: ignore
else:
newpath.append(element)
path = newpath
from imp import find_module as original_find_module
return original_find_module(fullname, path)


Expand Down
1 change: 0 additions & 1 deletion pynvim/plugin/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from typing import Any, Sequence

from pynvim.api import Nvim, decode_if_bytes, walk
from pynvim.compat import find_module
from pynvim.msgpack_rpc import ErrorResponse
from pynvim.plugin import script_host
from pynvim.util import format_exc_skip, get_client_info
Expand Down

0 comments on commit 919217d

Please sign in to comment.