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
@@ -89,8 +89,7 @@ def search_function_call(evaluator, func):
|
||||
parent = parent.parent
|
||||
|
||||
trailer = None
|
||||
if tree.is_node(parent, 'power') or \
|
||||
tree.is_node(parent, 'atom_expr'):
|
||||
if tree.is_node(parent, 'power', 'atom_expr'):
|
||||
for t in parent.children[1:]:
|
||||
if t == '**':
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user