diff --git a/.flake8 b/.flake8 index f4cc20cdb9b463d730f1b33406c3ab41de5d367a..5701df707c82aa801b4a6bb80a98a56b42cb1e8c 100644 --- a/.flake8 +++ b/.flake8 @@ -3,4 +3,4 @@ max-line-length=120 exclude=pystencils/jupyter.py, pystencils/plot.py pystencils/session.py -ignore = W293 W503 W291 C901 +ignore = W293 W503 W291 C901 E741 diff --git a/pystencils/astnodes.py b/pystencils/astnodes.py index 7bce77e0dd99926d71ccbfc6bf2c5722e84c99f1..4ef40a2c2f4908e4598aabea29648afbda6c3d67 100644 --- a/pystencils/astnodes.py +++ b/pystencils/astnodes.py @@ -117,7 +117,7 @@ class Conditional(Node): if self.true_block: repr += '\n\t{}) '.format(self.true_block) if self.false_block: - repr = 'else: '.format(self.false_block) + repr = 'else: ' repr += '\n\t{} '.format(self.false_block) return repr