mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 03:24:47 +08:00
Merge pull request #183 from fuhrysteve/master
NameError: global name 'PythonToVimStr' is not defined
This commit is contained in:
@@ -31,6 +31,7 @@ Tin Tvrtković (@Tinche) <tinchester@gmail.com>
|
|||||||
Zekeriya Koc (@zekzekus) <zekzekus@gmail.com>
|
Zekeriya Koc (@zekzekus) <zekzekus@gmail.com>
|
||||||
ethinx (@ethinx) <eth2net@gmail.com>
|
ethinx (@ethinx) <eth2net@gmail.com>
|
||||||
Wouter Overmeire (@lodagro) <lodagro@gmail.com>
|
Wouter Overmeire (@lodagro) <lodagro@gmail.com>
|
||||||
|
Stephen J. Fuhry (@fuhrysteve) <fuhrysteve@gmail.com>
|
||||||
|
|
||||||
|
|
||||||
@something are github user names.
|
@something are github user names.
|
||||||
|
|||||||
@@ -58,10 +58,6 @@ def echo_highlight(msg):
|
|||||||
vim_command('echohl WarningMsg | echom "%s" | echohl None' % 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):
|
class PythonToVimStr(unicode):
|
||||||
""" Vim has a different string implementation of single quotes """
|
""" Vim has a different string implementation of single quotes """
|
||||||
__slots__ = []
|
__slots__ = []
|
||||||
@@ -459,3 +455,7 @@ def escape_file_path(path):
|
|||||||
|
|
||||||
def print_to_stdout(level, str_out):
|
def print_to_stdout(level, str_out):
|
||||||
print(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.')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user