Salome HOME
[PY3] 2to3 results
[modules/smesh.git] / doc / salome / examples / quality_controls_ex21.py
index 1f27eef3af06bf07fd1b7a98ff609bb5173e09f3..0e80e50691faf04040ab1d4d61895dc970d6b3ab 100644 (file)
@@ -15,18 +15,18 @@ aFilter = smesh.GetFilter(SMESH.VOLUME, SMESH.FT_Volume3D, SMESH.FT_LessThan, vo
 anIds = mesh.GetIdsFromFilter(aFilter) 
 
 # print the result
-print ""
-print "Criterion: Volume < ", volume_margin, " Nb = ", len(anIds)
+print("")
+print("Criterion: Volume < ", volume_margin, " Nb = ", len(anIds))
 j = 1
 for i in range(len(anIds)):
-  if j > 20: j = 1; print ""
-  print anIds[i],
+  if j > 20: j = 1; print("")
+  print(anIds[i], end=' ')
   j = j + 1
   pass
-print ""
+print("")
 
 # create a group
-aGroup = mesh.CreateEmptyGroup(SMESH.VOLUME, "Volume < " + `volume_margin`)
+aGroup = mesh.CreateEmptyGroup(SMESH.VOLUME, "Volume < " + repr(volume_margin))
 
 aGroup.Add(anIds)