Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57384b9 + afc201a commit e01c27eCopy full SHA for e01c27e
pymode/__init__.py
@@ -6,7 +6,13 @@
6
import vim # noqa
7
8
if not hasattr(vim, 'find_module'):
9
- vim.find_module = _PathFinder.find_module
+ try:
10
+ vim.find_module = _PathFinder.find_module # deprecated
11
+ except AttributeError:
12
+ def _find_module(package_name):
13
+ spec = _PathFinder.find_spec(package_name)
14
+ return spec.loader if spec else None
15
+ vim.find_module = _find_module
16
17
18
def auto():
0 commit comments