Fix show_pydoc() get_definition() deprecation.

This commit is contained in:
heavenshell
2013-06-01 00:37:15 +09:00
parent cf3182e549
commit efb1997218

View File

@@ -160,7 +160,7 @@ def goto(is_definition=False, is_related_name=False, no_output=False):
def show_pydoc(): def show_pydoc():
script = get_script() script = get_script()
try: try:
definitions = script.get_definition() definitions = script.goto_definitions()
except jedi.NotFoundError: except jedi.NotFoundError:
definitions = [] definitions = []
except Exception: except Exception: