Salome HOME
Copyright update 2020
[modules/smesh.git] / src / Tools / MacMesh / MacMesh / Alarms.py
index 49de79cf2c04c555e87822b9f0a413e06d02d641..b1522b1e096a15313ba8c1669f5a32aa8980dc37 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2015  EDF R&D
+# Copyright (C) 2014-2020  EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 #
 
 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