UI/UserInterface.py

changeset 2560
cb82017d4dac
parent 2559
56b91939d319
child 2596
32c4afbe0801
diff -r 56b91939d319 -r cb82017d4dac 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
@@ -4175,9 +4175,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":
@@ -4198,9 +4197,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