-# Copyright (C) 2014-2016 EDF R&D
+# Copyright (C) 2014-2021 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