From 7bb223fccafa8dd80a580323de2a616cf928b670 Mon Sep 17 00:00:00 2001 From: Ovidiu Mircescu Date: Thu, 18 Jul 2019 15:43:23 +0200 Subject: [PATCH] python3 bug on ASTERComponent. --- module_generator/aster_tmpl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module_generator/aster_tmpl.py b/module_generator/aster_tmpl.py index 0e603ec..ec1d59f 100644 --- a/module_generator/aster_tmpl.py +++ b/module_generator/aster_tmpl.py @@ -136,7 +136,7 @@ ${initservice} return jdc def insertPrePost(self,jdc,prepost): - if prepost <> "": + if prepost != "": exec(prepost) try: jdc = os.linesep + pre + os.linesep + jdc + os.linesep + post + os.linesep @@ -149,7 +149,7 @@ ${initservice} self.jdc.g_context.update(args) CONTEXT.set_current_step(self.jdc) linecache.cache['']=0,None,string.split(text,'\\n'),'' - exec text in self.jdc.const_context,self.jdc.g_context + exec(text in self.jdc.const_context,self.jdc.g_context) CONTEXT.unset_current_step() except EOFError: CONTEXT.unset_current_step() -- 2.39.2