From 55b712373ee0050155ab19fd97e2db3b6618eccb Mon Sep 17 00:00:00 2001 From: Michael Kuron <mkuron@icp.uni-stuttgart.de> Date: Sat, 15 May 2021 21:09:36 +0000 Subject: [PATCH] Jinja2 3.0 compatibility --- python/pystencils_walberla/kernel_selection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pystencils_walberla/kernel_selection.py b/python/pystencils_walberla/kernel_selection.py index 0e2becd6f..316c701c1 100644 --- a/python/pystencils_walberla/kernel_selection.py +++ b/python/pystencils_walberla/kernel_selection.py @@ -108,8 +108,8 @@ class AbstractConditionNode(AbstractKernelSelectionNode): true_branch_code = self.branch_true.get_code(**kwargs) false_branch_code = self.branch_false.get_code(**kwargs) - true_branch_code = do_indent(true_branch_code, width=4, indentfirst=True) - false_branch_code = do_indent(false_branch_code, width=4, indentfirst=True) + true_branch_code = do_indent(true_branch_code, width=4, first=True) + false_branch_code = do_indent(false_branch_code, width=4, first=True) code = f"if({self.condition_text}) {{\n" code += true_branch_code -- GitLab