UI/UserInterface.py

branch
5_3_x
changeset 2561
b396baae6aa7
parent 2558
bc79bae54496
child 2631
06f866e83d3a
--- 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