diff --git a/pymode/__init__.py b/pymode/__init__.py index 2a5dac3d..7f599026 100644 --- a/pymode/__init__.py +++ b/pymode/__init__.py @@ -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.