Salome HOME
[PYTHON 3] 1st draft
[modules/geom.git] / doc / salome / examples / check_compound_of_blocks.py
index 26f7c3012ae79064cb71317eb73e981612ecf07e..1420a1fe1b851ba30d1d7cdc742f5afd5dc643db 100644 (file)
@@ -19,6 +19,6 @@ tolerance = 1e-5
 glue = geompy.MakeGlueFaces(compound, tolerance)
 IsValid = geompy.CheckCompoundOfBlocks(glue)
 if IsValid == 0:
-    raise RuntimeError, "Invalid compound created"
+    raise RuntimeError("Invalid compound created")
 else:
-    print "\nCompound is valid"
+    print("\nCompound is valid")