From d9f92d5b24ae431c1a10bacf63d5c0f84147ca86 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 21 Jul 2016 23:26:04 +0200 Subject: [PATCH] Move the vim import to top. --- jedi_vim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi_vim.py b/jedi_vim.py index 6dfe586..fc5898d 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -15,6 +15,7 @@ try: except ImportError: from itertools import izip_longest as zip_longest # Python 2 +import vim is_py3 = sys.version_info[0] >= 3 if is_py3: @@ -90,7 +91,6 @@ def echo_highlight(msg): msg.replace('"', '\\"'))) -import vim try: import jedi except ImportError as e: