--- a/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Tue Oct 15 22:03:54 2013 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Fri Oct 18 23:00:41 2013 +0200 @@ -30,7 +30,8 @@ class HgDiffDialog(QWidget, Ui_HgDiffDialog): """ - Class implementing a dialog to show the output of the hg diff command process. + Class implementing a dialog to show the output of the hg diff command + process. """ def __init__(self, vcs, parent=None): """ @@ -100,7 +101,8 @@ Public slot to start the hg diff command. @param fn filename to be diffed (string) - @param versions list of versions to be diffed (list of up to 2 strings or None) + @param versions list of versions to be diffed (list of up to 2 strings + or None) @param bundle name of a bundle file (string) @param qdiff flag indicating qdiff command shall be used (boolean) """ @@ -214,7 +216,8 @@ def __finish(self): """ - Private slot called when the process finished or the user pressed the button. + Private slot called when the process finished or the user pressed + the button. """ QApplication.restoreOverrideCursor() self.inputGroup.setEnabled(False) @@ -227,7 +230,8 @@ self.buttonBox.button(QDialogButtonBox.Save).setEnabled(True) self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) - self.buttonBox.button(QDialogButtonBox.Close).setFocus(Qt.OtherFocusReason) + self.buttonBox.button(QDialogButtonBox.Close).setFocus( + Qt.OtherFocusReason) tc = self.contents.textCursor() tc.movePosition(QTextCursor.Start) @@ -238,7 +242,8 @@ self.filesCombo.addItem(self.trUtf8("<End>"), -1) for oldFile, newFile, pos in sorted(self.__fileSeparators): if oldFile != newFile: - self.filesCombo.addItem("{0}\n{1}".format(oldFile, newFile), pos) + self.filesCombo.addItem( + "{0}\n{1}".format(oldFile, newFile), pos) else: self.filesCombo.addItem(oldFile, pos) @@ -278,7 +283,8 @@ self.__oldFile = self.__extractFileName(line) else: self.__fileSeparators.append( - (self.__oldFile, self.__extractFileName(line), self.__oldFileLine)) + (self.__oldFile, self.__extractFileName(line), + self.__oldFileLine)) def __processOutputLine(self, line): """ @@ -377,7 +383,8 @@ # step 2: move cursor to desired line tc = self.contents.textCursor() delta = tc.blockNumber() - para - tc.movePosition(QTextCursor.PreviousBlock, QTextCursor.MoveAnchor, delta) + tc.movePosition(QTextCursor.PreviousBlock, QTextCursor.MoveAnchor, + delta) self.contents.setTextCursor(tc) self.contents.ensureCursorVisible()