1
0
forked from VimPlug/jedi

combine power-or-atom_expr statements into one statement

This commit is contained in:
Claude
2016-02-15 10:20:25 +01:00
parent d5f08f8bdd
commit ca08b8270b
6 changed files with 6 additions and 7 deletions

View File

@@ -1342,7 +1342,7 @@ def _defined_names(current):
names += _defined_names(child)
elif is_node(current, 'atom'):
names += _defined_names(current.children[1])
elif is_node(current, 'power') or is_node(current, 'atom_expr'):
elif is_node(current, 'power', 'atom_expr'):
if current.children[-2] != '**': # Just if there's no operation
trailer = current.children[-1]
if trailer.children[0] == '.':