1
0
forked from VimPlug/jedi

make api_classes.BaseDefinition._definition private

This commit is contained in:
David Halter
2013-05-03 20:56:07 +04:30
parent 5d472e99ac
commit 860cc5de04
2 changed files with 19 additions and 19 deletions

View File

@@ -170,7 +170,7 @@ def inline(script):
definitions = script.goto()
with common.ignored(AssertionError):
assert len(definitions) == 1
stmt = definitions[0].definition
stmt = definitions[0]._definition
related_names = script.related_names()
inlines = [r for r in related_names
if not stmt.start_pos <= r.start_pos <= stmt.end_pos]