Skip to content

Commit

Permalink
Possibly fixing vim/python import machinery error
Browse files Browse the repository at this point in the history
This is a possible fix for python-mode#972.

And it was based on pypa/setuptools#1563 (comment)
  • Loading branch information
diraol committed May 11, 2019
1 parent b36724a commit f99dca7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pymode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

import sys
import vim # noqa

try:
from importlib.machinery import PathFinder as _PathFinder
vim.find_module = _PathFinder.find_module
except ImportError:
pass

def auto():
"""Fix PEP8 erorrs in current buffer.
Expand Down

0 comments on commit f99dca7

Please sign in to comment.