Salome HOME
[tuleap26358] : non regression test
[modules/smesh.git] / doc / salome / examples / modifying_meshes_ex08.py
index 4cfa89ee4f8fd727b0cb5a9f30fd68873e6e22e1..1cf27c5dfce97f23369807701add34db508b4e69 100644 (file)
@@ -3,7 +3,7 @@
 import SMESH_mechanic
 
 mesh = SMESH_mechanic.mesh
-print ""
+print("")
 
 # add nodes
 nId1 = mesh.AddNode(50, 10, 0)
@@ -11,9 +11,9 @@ nId2 = mesh.AddNode(47, 12, 0)
 nId3 = mesh.AddNode(50, 10, 10)
 nId4 = mesh.AddNode(47, 12, 10)
 
-if nId1 == 0 or nId2 == 0 or nId3 == 0 or nId4 == 0: print "KO node addition."
+if nId1 == 0 or nId2 == 0 or nId3 == 0 or nId4 == 0: print("KO node addition.")
 
 # add hexahedron
 vId = mesh.AddVolume([nId2, nId1, 38, 39, nId4, nId3, 245, 246])
-if vId == 0: print "KO Hexahedron addition."
-else:        print "New Hexahedron has been added with ID ", vId
+if vId == 0: print("KO Hexahedron addition.")
+else:        print("New Hexahedron has been added with ID ", vId)