forked from VimPlug/jedi
combine power-or-atom_expr statements into one statement
This commit is contained in:
@@ -88,7 +88,7 @@ def call_of_name(name, cut_own_trailer=False):
|
||||
return name
|
||||
|
||||
power = par.parent
|
||||
if (tree.is_node(power, 'power') or tree.is_node(power, 'atom_expr')) \
|
||||
if tree.is_node(power, 'power', 'atom_expr') \
|
||||
and power.children[0] != name \
|
||||
and not (power.children[-2] == '**' and
|
||||
name.start_pos > power.children[-1].start_pos):
|
||||
|
||||
Reference in New Issue
Block a user