combine power-or-atom_expr statements into one statement

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

No files matched your search

+1 -1
View File
@@ -291,7 +291,7 @@ class Evaluator(object):
types = set([element]) # TODO this is no real evaluation.
elif element.type == 'expr_stmt':
types = self.eval_statement(element)
elif element.type == 'power' or element.type == 'atom_expr':
elif element.type in ('power', 'atom_expr'):
types = self._eval_atom(element.children[0])
for trailer in element.children[1:]:
if trailer == '**': # has a power operation.