eric6/Plugins/VcsPlugins/vcsSubversion/SvnBlameDialog.py

changeset 7262
c4b5f3393d63
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/Plugins/VcsPlugins/vcsSubversion/SvnBlameDialog.py	Tue Sep 24 18:42:25 2019 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsSubversion/SvnBlameDialog.py	Tue Sep 24 18:45:33 2019 +0200
@@ -11,8 +11,9 @@
 import os
 
 from PyQt5.QtCore import QTimer, QProcess, Qt, pyqtSlot
-from PyQt5.QtWidgets import QHeaderView, QLineEdit, QDialog, \
-    QDialogButtonBox, QTreeWidgetItem
+from PyQt5.QtWidgets import (
+    QHeaderView, QLineEdit, QDialog, QDialogButtonBox, QTreeWidgetItem
+)
 
 from E5Gui import E5MessageBox
 
@@ -59,8 +60,10 @@
         
         @param e close event (QCloseEvent)
         """
-        if self.process is not None and \
-           self.process.state() != QProcess.NotRunning:
+        if (
+            self.process is not None and
+            self.process.state() != QProcess.NotRunning
+        ):
             self.process.terminate()
             QTimer.singleShot(2000, self.process.kill)
             self.process.waitForFinished(3000)
@@ -111,8 +114,10 @@
         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:
+        if (
+            self.process is not None and
+            self.process.state() != QProcess.NotRunning
+        ):
             self.process.terminate()
             QTimer.singleShot(2000, self.process.kill)
             self.process.waitForFinished(3000)
@@ -179,8 +184,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()
             rev, s = s.split(None, 1)
             try:
                 author, text = s.split(' ', 1)

eric ide

mercurial