diff -r 1b59c4ba121e -r 8cd4d08fa9f6 Plugins/VcsPlugins/vcsSubversion/SvnDialog.py --- a/Plugins/VcsPlugins/vcsSubversion/SvnDialog.py Fri Mar 11 08:55:14 2011 +0100 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnDialog.py Fri Mar 11 16:51:57 2011 +0100 @@ -18,6 +18,7 @@ import Preferences + class SvnDialog(QDialog, Ui_SvnDialog): """ Class implementing a dialog starting a process and showing its output. @@ -26,7 +27,7 @@ shows the output of the process. The dialog is modal, which causes a synchronized execution of the process. """ - def __init__(self, text, parent = None): + def __init__(self, text, parent=None): """ Constructor @@ -89,7 +90,7 @@ self.normal = (exitStatus == QProcess.NormalExit) and (exitCode == 0) self.__finish() - def startProcess(self, args, workingDir = None): + def startProcess(self, args, workingDir=None): """ Public slot used to start the process. @@ -149,14 +150,14 @@ def __readStdout(self): """ - Private slot to handle the readyReadStdout signal. + Private slot to handle the readyReadStdout signal. It reads the output of the process, formats it and inserts it into the contents pane. """ if self.proc is not None: - s = str(self.proc.readAllStandardOutput(), - Preferences.getSystem("IOEncoding"), + s = str(self.proc.readAllStandardOutput(), + Preferences.getSystem("IOEncoding"), 'replace') self.resultbox.insertPlainText(s) self.resultbox.ensureCursorVisible() @@ -176,8 +177,8 @@ """ if self.proc is not None: self.errorGroup.show() - s = str(self.proc.readAllStandardError(), - Preferences.getSystem("IOEncoding"), + s = str(self.proc.readAllStandardError(), + Preferences.getSystem("IOEncoding"), 'replace') self.errors.insertPlainText(s) self.errors.ensureCursorVisible()