From fbc508ddfbbde17026bd143b54fe90fe277701ee Mon Sep 17 00:00:00 2001 From: prascle Date: Thu, 5 Jun 2003 07:14:55 +0000 Subject: [PATCH] PR: force the transformation of message argument into string --- src/Utils/SALOME_utilities.py | 6 +++--- src/Utils/utilities.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Utils/SALOME_utilities.py b/src/Utils/SALOME_utilities.py index 0911df2d8..f21c17457 100644 --- a/src/Utils/SALOME_utilities.py +++ b/src/Utils/SALOME_utilities.py @@ -15,20 +15,20 @@ def REPERE(): def BEGIN_OF(msg): if __debug__: REPERE(); MYTRACE(); - GLogger.putMessage("Begin of : "+ msg + "\n") + GLogger.putMessage("Begin of : "+ str(msg) + "\n") REPERE(); def END_OF(msg): if __debug__: REPERE(); MYTRACE(); - GLogger.putMessage("Normale end of : "+ msg + "\n") + GLogger.putMessage("Normale end of : "+ str(msg) + "\n") REPERE(); def MESSAGE(msg): if __debug__: MYTRACE() - GLogger.putMessage(msg + "\n") + GLogger.putMessage(str(msg) + "\n") def SCRUTE(var_name, var_value): MYTRACE(); diff --git a/src/Utils/utilities.py b/src/Utils/utilities.py index 0911df2d8..f21c17457 100644 --- a/src/Utils/utilities.py +++ b/src/Utils/utilities.py @@ -15,20 +15,20 @@ def REPERE(): def BEGIN_OF(msg): if __debug__: REPERE(); MYTRACE(); - GLogger.putMessage("Begin of : "+ msg + "\n") + GLogger.putMessage("Begin of : "+ str(msg) + "\n") REPERE(); def END_OF(msg): if __debug__: REPERE(); MYTRACE(); - GLogger.putMessage("Normale end of : "+ msg + "\n") + GLogger.putMessage("Normale end of : "+ str(msg) + "\n") REPERE(); def MESSAGE(msg): if __debug__: MYTRACE() - GLogger.putMessage(msg + "\n") + GLogger.putMessage(str(msg) + "\n") def SCRUTE(var_name, var_value): MYTRACE(); -- 2.39.2