Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2791
a9577f248f04
parent 2962
d6c9d1ca2da4
child 3058
0a02c433f52d
--- a/Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -47,7 +47,8 @@
         self.vcs = vcs
         self.__hgClient = vcs.getClient()
         
-        self.annotateList.headerItem().setText(self.annotateList.columnCount(), "")
+        self.annotateList.headerItem().setText(
+            self.annotateList.columnCount(), "")
         font = QFont(self.annotateList.font())
         if Utilities.isWindowsPlatform():
             font.setFamily("Lucida Console")
@@ -150,7 +151,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.
         """
         if self.process is not None and \
            self.process.state() != QProcess.NotRunning:
@@ -164,7 +166,8 @@
         self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True)
         self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False)
         self.buttonBox.button(QDialogButtonBox.Close).setDefault(True)
-        self.buttonBox.button(QDialogButtonBox.Close).setFocus(Qt.OtherFocusReason)
+        self.buttonBox.button(QDialogButtonBox.Close).setFocus(
+            Qt.OtherFocusReason)
         
         self.process = None
         
@@ -207,10 +210,12 @@
         @param changeset changeset string (string)
         @param author author of the change (string)
         @param date date of the tag (string)
-        @param name name (path) of the tag (string)
+        @param text name (path) of the tag (string)
         """
-        itm = QTreeWidgetItem(self.annotateList,
-            [revision, changeset, author, date, "{0:d}".format(self.lineno), text])
+        itm = QTreeWidgetItem(
+            self.annotateList,
+            [revision, changeset, author, date, "{0:d}".format(self.lineno),
+             text])
         self.lineno += 1
         itm.setTextAlignment(0, Qt.AlignRight)
         itm.setTextAlignment(4, Qt.AlignRight)
@@ -225,7 +230,8 @@
         self.process.setReadChannel(QProcess.StandardOutput)
         
         while self.process.canReadLine():
-            s = str(self.process.readLine(), self.__ioEncoding, 'replace').strip()
+            s = str(self.process.readLine(), self.__ioEncoding, 'replace')\
+                .strip()
             self.__processOutputLine(s)
     
     def __processOutputLine(self, line):

eric ide

mercurial