From: Gilles DAVID Date: Fri, 24 Mar 2017 09:35:57 +0000 (+0100) Subject: Porting to Python 3 X-Git-Tag: V9_0_0~1^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=967b51a999915500a236abe686598e66d90b269a;p=plugins%2Fghs3dplugin.git Porting to Python 3 --- diff --git a/doc/salome/examples/ghs3d_optimization.py b/doc/salome/examples/ghs3d_optimization.py index a7ecaf6..6b08393 100644 --- a/doc/salome/examples/ghs3d_optimization.py +++ b/doc/salome/examples/ghs3d_optimization.py @@ -53,8 +53,8 @@ mg_opt.SetOptimizationLevel( smeshBuilder.Strong_Optimization ) # run optimization optMesh.Compute() -print "Nb tetra before optimization", mesh.NbTetras() -print "Nb tetra after optimization", optMesh.NbTetras() +print("Nb tetra before optimization", mesh.NbTetras()) +print("Nb tetra after optimization", optMesh.NbTetras()) # End of script diff --git a/src/GHS3DPlugin/GHS3DPluginBuilder.py b/src/GHS3DPlugin/GHS3DPluginBuilder.py index d65efc5..3f71c42 100644 --- a/src/GHS3DPlugin/GHS3DPluginBuilder.py +++ b/src/GHS3DPlugin/GHS3DPluginBuilder.py @@ -74,7 +74,7 @@ class GHS3D_Algorithm(Mesh_Algorithm): # if it is @c 0 (default), the algorithm is assigned to the main shape def __init__(self, mesh, geom=0): Mesh_Algorithm.__init__(self) - if noGHS3DPlugin: print "Warning: GHS3DPlugin module unavailable" + if noGHS3DPlugin: print("Warning: GHS3DPlugin module unavailable") self.Create(mesh, geom, self.algoType, "libGHS3DEngine.so") self.params = None pass