From: Christophe Bourcier Date: Tue, 8 Jan 2019 14:16:15 +0000 (+0100) Subject: Fix output formatting of Cleaner and SurfOpt plugins so that new lines are printed X-Git-Tag: V9_3_0a1~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f978fc962178e3f82703e49604309ee1939f806;p=modules%2Fsmesh.git Fix output formatting of Cleaner and SurfOpt plugins so that new lines are printed --- diff --git a/src/Tools/MGCleanerPlug/MGCleanerMonViewText.py b/src/Tools/MGCleanerPlug/MGCleanerMonViewText.py index 99e322d31..393c9e209 100644 --- a/src/Tools/MGCleanerPlug/MGCleanerMonViewText.py +++ b/src/Tools/MGCleanerPlug/MGCleanerMonViewText.py @@ -120,11 +120,12 @@ class MGCleanerMonViewText(Ui_ViewExe, QDialog): def readFromStdErr(self): a=self.monExe.readAllStandardError() - self.TB_Exe.append(str(a.data())) + aa=a.data().decode(errors='ignore') + self.TB_Exe.append(aa) def readFromStdOut(self) : a=self.monExe.readAllStandardOutput() - aa=str(a.data()) + aa=a.data().decode(errors='ignore') self.TB_Exe.append(aa) def finished(self): diff --git a/src/Tools/YamsPlug/monViewText.py b/src/Tools/YamsPlug/monViewText.py index 3109bfe8a..84d640e8e 100644 --- a/src/Tools/YamsPlug/monViewText.py +++ b/src/Tools/YamsPlug/monViewText.py @@ -107,11 +107,12 @@ class MonViewText(Ui_ViewExe, QDialog): def readFromStdErr(self): a=self.monExe.readAllStandardError() - self.TB_Exe.append(str(a.data().encode())) + aa=a.data().decode(errors='ignore') + self.TB_Exe.append(aa) def readFromStdOut(self) : a=self.monExe.readAllStandardOutput() - aa=str(a.data()) + aa=a.data().decode(errors='ignore') self.TB_Exe.append(aa) def finished(self):