1
0
forked from VimPlug/jedi

Use recursion rather than other stuff

This commit is contained in:
Dave Halter
2019-07-05 23:51:24 -07:00
parent d579c0ad57
commit 943617a94f

View File

@@ -181,7 +181,7 @@ def _get_index_and_key(nodes, position):
"""
nodes_before = [c for c in nodes if c.start_pos < position]
if nodes_before[-1].type == 'arglist':
nodes_before = [c for c in nodes_before[-1].children if c.start_pos < position]
return _get_index_and_key(nodes_before[-1].children, position)
key_str = None