1
0
forked from VimPlug/jedi

Use PythonNode and not Node in the evaluator.

This commit is contained in:
Dave Halter
2017-04-01 17:39:28 +02:00
parent 281d6a87a0
commit 4cc467123c
3 changed files with 5 additions and 7 deletions

View File

@@ -230,8 +230,6 @@ class DiffParser(object):
leaf = leaf.get_next_leaf()
if leaf.get_start_pos_of_prefix()[0] == old_line:
node = leaf
# TODO use leaf.get_definition one day when that one is working
# well.
while node.parent.type not in ('file_input', 'suite'):
node = node.parent
return node