1
0
forked from VimPlug/jedi

_get_definition -> get_definition in parso.

This commit is contained in:
Dave Halter
2017-09-03 00:50:52 +02:00
parent 4795ed9071
commit f69d8f1f29
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -444,7 +444,7 @@ class Evaluator(object):
return types
def goto_definitions(self, context, name):
def_ = name._get_definition(import_name_always=True)
def_ = name.get_definition(import_name_always=True)
if def_ is not None:
type_ = def_.type
if type_ == 'classdef':
@@ -468,7 +468,7 @@ class Evaluator(object):
return helpers.evaluate_call_of_leaf(context, name)
def goto(self, context, name):
definition = name._get_definition(import_name_always=True)
definition = name.get_definition(import_name_always=True)
if definition is not None:
type_ = definition.type
if type_ == 'expr_stmt':