Commit 76c3727b authored by Markus Holzer's avatar Markus Holzer
Browse files

Replaced repr naming of variable

parent 87f5cfdd
...@@ -113,14 +113,14 @@ class Conditional(Node): ...@@ -113,14 +113,14 @@ class Conditional(Node):
return self.__repr__() return self.__repr__()
def __repr__(self): def __repr__(self):
repr = f'if:({self.condition_expr!r}) ' result = f'if:({self.condition_expr!r}) '
if self.true_block: if self.true_block:
repr += f'\n\t{self.true_block}) ' result += f'\n\t{self.true_block}) '
if self.false_block: if self.false_block:
repr = 'else: ' result = 'else: '
repr += f'\n\t{self.false_block} ' result += f'\n\t{self.false_block} '
return repr return result
def replace_by_true_block(self): def replace_by_true_block(self):
"""Replaces the conditional by its True block""" """Replaces the conditional by its True block"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment