diff --git a/autoload/jedi.vim b/autoload/jedi.vim index 6eaea4a..53dcc6b 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -31,15 +31,15 @@ function! jedi#show_func_def() endfunction function! jedi#enable_speed_debugging() - python jedi.set_debug_function(jedi.debug.print_to_stdout, speed=True, warnings=False, notices=False) + python jedi_vim.jedi.set_debug_function(jedi_vim.print_to_stdout, speed=True, warnings=False, notices=False) endfunction function! jedi#enable_debugging() - python jedi.set_debug_function(jedi.debug.print_to_stdout, speed=True, warnings=False, notices=False) + python jedi_vim.jedi.set_debug_function(jedi_vim.print_to_stdout) endfunction function! jedi#disable_debugging() - python jedi.set_debug_function(None) + python jedi_vim.jedi.set_debug_function(None) endfunction " ------------------------------------------------------------------------ diff --git a/jedi b/jedi index 24b8942..d08c12b 160000 --- a/jedi +++ b/jedi @@ -1 +1 @@ -Subproject commit 24b8942713114f26dc6f4c2e244b4aae2f287df8 +Subproject commit d08c12bb06ad47e37cd0d9e6d506acc5cc0d10b2 diff --git a/plugin/jedi_vim.py b/plugin/jedi_vim.py index 26e5fcf..f75a595 100644 --- a/plugin/jedi_vim.py +++ b/plugin/jedi_vim.py @@ -287,3 +287,7 @@ def tabnew(path): else: # tab doesn't exist, add a new one. vim.command('tabnew %s' % path) + + +def print_to_stdout(level, str_out): + print(str_out)