From: Ovidiu Mircescu Date: Thu, 18 Jul 2019 13:43:23 +0000 (+0200) Subject: python3 bug on ASTERComponent. X-Git-Tag: V9_4_0a1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7bb223fccafa8dd80a580323de2a616cf928b670;p=tools%2Fyacsgen.git python3 bug on ASTERComponent. --- 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()