From 76c3727b8a8fcf3a4a77682805dce34b61086883 Mon Sep 17 00:00:00 2001 From: markus <markus.holzer@fau.de> Date: Fri, 19 Jun 2020 17:58:42 +0200 Subject: [PATCH] Replaced repr naming of variable --- pystencils/astnodes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pystencils/astnodes.py b/pystencils/astnodes.py index eb774543f..85c6033c5 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""" -- GitLab