1
0
forked from VimPlug/jedi

python 3.5 uses atom_expr node in many places where previous python would use power node

This commit is contained in:
Claude
2016-02-09 11:42:53 +01:00
parent 3fb5fe8c77
commit 241abe9cf3
4 changed files with 6 additions and 4 deletions
+1 -1
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'):
elif is_node(current, 'power') or is_node(current, 'atom_expr'):
if current.children[-2] != '**': # Just if there's no operation
trailer = current.children[-1]
if trailer.children[0] == '.':