combine power-or-atom_expr statements into one statement
This commit is contained in:
1 parent
d5f08f8bdd
commit
ca08b8270b
6 files changed
+6
-7
No files matched your search
@@ -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