From c83f4f5d17fb54db6f8c8f4e400030427852d00c Mon Sep 17 00:00:00 2001 From: markus <markus.holzer@fau.de> Date: Fri, 19 Jun 2020 16:41:11 +0200 Subject: [PATCH] Fixed flake8 F523 --- .flake8 | 2 +- pystencils/astnodes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index f4cc20cdb..5701df707 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 7bce77e0d..4ef40a2c2 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 -- GitLab