Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PY3] 2to3 results
[modules/smesh.git]
/
doc
/
salome
/
examples
/
modifying_meshes_ex05.py
diff --git
a/doc/salome/examples/modifying_meshes_ex05.py
b/doc/salome/examples/modifying_meshes_ex05.py
index bd1e1438bf39ef51de5ae3438cd7817b935d9c90..c48042a6fab9cd22551bb6fee2a3928abafaae18 100644
(file)
--- a/
doc/salome/examples/modifying_meshes_ex05.py
+++ b/
doc/salome/examples/modifying_meshes_ex05.py
@@
-3,13
+3,13
@@
import SMESH_mechanic
mesh = SMESH_mechanic.mesh
import SMESH_mechanic
mesh = SMESH_mechanic.mesh
-print
""
+print
("")
# add node
n1 = mesh.AddNode(50, 10, 0)
# add node
n1 = mesh.AddNode(50, 10, 0)
-if n1 == 0: print
"KO node addition."
+if n1 == 0: print
("KO node addition.")
# add triangle
t1 = mesh.AddFace([n1, 38, 39])
# add triangle
t1 = mesh.AddFace([n1, 38, 39])
-if t1 == 0: print
"KO triangle addition."
-else: print
"New Triangle has been added with ID ", t1
+if t1 == 0: print
("KO triangle addition.")
+else: print
("New Triangle has been added with ID ", t1)