From 5f978fc962178e3f82703e49604309ee1939f806 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Tue, 8 Jan 2019 15:16:15 +0100 Subject: [PATCH] Fix output formatting of Cleaner and SurfOpt plugins so that new lines are printed --- src/Tools/MGCleanerPlug/MGCleanerMonViewText.py | 5 +++-- src/Tools/YamsPlug/monViewText.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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): -- 2.39.2