From d1f8a91fd395501daee1a5de63bfc68292f89f1e Mon Sep 17 00:00:00 2001 From: "Stephen J. Fuhry" Date: Sun, 8 Sep 2013 14:14:19 -0400 Subject: [PATCH] moving if to end of file --- jedi_vim.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jedi_vim.py b/jedi_vim.py index cf15f71..1f1d056 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -58,10 +58,6 @@ def echo_highlight(msg): vim_command('echohl WarningMsg | echom "%s" | echohl None' % msg) -if not hasattr(jedi, '__version__') or jedi.__version__ < (0, 7, 0): - echo_highlight('Please update your Jedi version, it is to old.') - - class PythonToVimStr(unicode): """ Vim has a different string implementation of single quotes """ __slots__ = [] @@ -459,3 +455,7 @@ def escape_file_path(path): def print_to_stdout(level, str_out): print(str_out) + +if not hasattr(jedi, '__version__') or jedi.__version__ < (0, 7, 0): + echo_highlight('Please update your Jedi version, it is to old.') +