Skip to content

Commit 919217d

Browse files
committed
fix: undefined name 'original_find_module'
pynvim/compat.py:24:12: F821 undefined name 'original_find_module' regression from eaa862d
1 parent 8e1ed5e commit 919217d

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pynvim/compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def find_module(fullname, path): # type: ignore
2121
else:
2222
newpath.append(element)
2323
path = newpath
24+
from imp import find_module as original_find_module
2425
return original_find_module(fullname, path)
2526

2627

pynvim/plugin/host.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from typing import Any, Sequence
1111

1212
from pynvim.api import Nvim, decode_if_bytes, walk
13-
from pynvim.compat import find_module
1413
from pynvim.msgpack_rpc import ErrorResponse
1514
from pynvim.plugin import script_host
1615
from pynvim.util import format_exc_skip, get_client_info

0 commit comments

Comments
 (0)