Salome HOME
Merge V9_dev branch into master
[modules/smesh.git] / src / Tools / MacMesh / MacMesh / Alarms.py
index c9b6cca99580ccaac2896912ded272420e1ad11d..e0d7de6aca458c67489d55e602b2fa600631aeb6 100644 (file)
 #
 
 def Message (code) :
-       import sys
-       MessageString = { 1 : lambda x: "Successfully created \n",
-                          2 : lambda x: "Fatal: Incorrect input \n",
-                          3 : lambda x: "Fatal: Overlapping objects detected \n",
-                          4 : lambda x: "Fatal: Incompatible object type with neighbouring objects" }[code](str(code))
-       print MessageString
-       #if code > 1 : sys.exit()
-       return 1
-
+    import sys
+    MessageString = { 1 : lambda x: "Successfully created \n",
+                      2 : lambda x: "Fatal: Incorrect input \n",
+                      3 : lambda x: "Fatal: Overlapping objects detected \n",
+                      4 : lambda x: "Fatal: Incompatible object type with neighbouring objects" }[code](str(code))
+    print(MessageString)
+    #if code > 1 : sys.exit()
+    return 1