Salome HOME
[PY3] Removing TAB issues
[modules/smesh.git] / src / Tools / MacMesh / MacMesh / Alarms.py
index c9b6cca99580ccaac2896912ded272420e1ad11d..1aedce1e12c9a89e292aa32cbd5ad03ae9d0cb9e 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