mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
Fix show_pydoc() get_definition() deprecation.
This commit is contained in:
@@ -160,7 +160,7 @@ def goto(is_definition=False, is_related_name=False, no_output=False):
|
||||
def show_pydoc():
|
||||
script = get_script()
|
||||
try:
|
||||
definitions = script.get_definition()
|
||||
definitions = script.goto_definitions()
|
||||
except jedi.NotFoundError:
|
||||
definitions = []
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user