]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix output formatting of Cleaner and SurfOpt plugins so that new lines are printed
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 8 Jan 2019 14:16:15 +0000 (15:16 +0100)
committervsr <vsr@opencascade.com>
Mon, 4 Feb 2019 12:49:42 +0000 (15:49 +0300)
src/Tools/MGCleanerPlug/MGCleanerMonViewText.py
src/Tools/YamsPlug/monViewText.py

index 99e322d3111813d8c56f8c520653485f48c585e1..393c9e20973f39d211e0eda8d2258d72b6475b10 100644 (file)
@@ -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):
index 3109bfe8aad4c8ac3de005f910636ea4d3712bfb..84d640e8edd2a6d72930499690540ed107418f83 100644 (file)
@@ -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):