Fixed a bug in the UserInterface methods capturing the output of tool programs. 5_3_x

Fri, 05 Apr 2013 17:50:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 05 Apr 2013 17:50:32 +0200
branch
5_3_x
changeset 2561
b396baae6aa7
parent 2558
bc79bae54496
child 2562
568123671f60

Fixed a bug in the UserInterface methods capturing the output of tool programs.
(grafted from cb82017d4dacc173c25b2e6413d685f58e4c9501)

UI/UserInterface.py file | annotate | diff | comparison | revisions
diff -r bc79bae54496 -r b396baae6aa7 UI/UserInterface.py
--- a/UI/UserInterface.py	Thu Apr 04 19:08:42 2013 +0200
+++ b/UI/UserInterface.py	Fri Apr 05 17:50:32 2013 +0200
@@ -4160,9 +4160,8 @@
                toolProcData[1] not in ["insert", "replaceSelection"]:
                 # not connected to an editor or wrong mode
                 while toolProc.canReadLine():
-                    s = "{0} - ".format(program)
                     output = str(toolProc.readLine(), ioEncoding, 'replace')
-                    s.append(output)
+                    s = "{0} - {1}".format(program, output)
                     self.appendToStdout(s)
             else:
                 if toolProcData[1] == "insert":
@@ -4183,9 +4182,8 @@
             toolProc.setReadChannel(QProcess.StandardError)
             
             while toolProc.canReadLine():
-                s = "{0} - ".format(program)
                 error = str(toolProc.readLine(), ioEncoding, 'replace')
-                s.append(error)
+                s = "{0} - {1}".format(program, error)
                 self.appendToStderr(s)
         
     def __toolFinished(self, exitCode, exitStatus):

eric ide

mercurial