diff --git a/pystencils/astnodes.py b/pystencils/astnodes.py index eb774543f18965a05689d2963fcbb717d59b966d..85c6033c513bb42646c76168eb13abc51f9b37ce 100644 --- a/pystencils/astnodes.py +++ b/pystencils/astnodes.py @@ -113,14 +113,14 @@ class Conditional(Node): return self.__repr__() def __repr__(self): - repr = f'if:({self.condition_expr!r}) ' + result = f'if:({self.condition_expr!r}) ' if self.true_block: - repr += f'\n\t{self.true_block}) ' + result += f'\n\t{self.true_block}) ' if self.false_block: - repr = 'else: ' - repr += f'\n\t{self.false_block} ' + result = 'else: ' + result += f'\n\t{self.false_block} ' - return repr + return result def replace_by_true_block(self): """Replaces the conditional by its True block"""