eric6/Plugins/VcsPlugins/vcsGit/GitStashBrowserDialog.py

changeset 7257
c4d0cac9b5c9
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r 4ef3b78ebb4e -r c4d0cac9b5c9 eric6/Plugins/VcsPlugins/vcsGit/GitStashBrowserDialog.py
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitStashBrowserDialog.py	Sat Sep 21 20:30:56 2019 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsGit/GitStashBrowserDialog.py	Sat Sep 21 22:03:03 2019 +0200
@@ -12,8 +12,10 @@
 
 from PyQt5.QtCore import pyqtSlot, Qt, QPoint, QProcess, QTimer
 from PyQt5.QtGui import QCursor
-from PyQt5.QtWidgets import QWidget, QDialogButtonBox, QTreeWidgetItem, \
-    QAbstractButton, QMenu, QHeaderView, QApplication, QLineEdit
+from PyQt5.QtWidgets import (
+    QWidget, QDialogButtonBox, QTreeWidgetItem, QAbstractButton, QMenu,
+    QHeaderView, QApplication, QLineEdit
+)
 
 from E5Gui import E5MessageBox
 
@@ -95,8 +97,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)
@@ -221,8 +225,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)
@@ -331,8 +337,9 @@
                     totals = {"files": 0, "additions": 0, "deletions": 0}
                     fileData = []
                     for line in output.splitlines():
-                        additions, deletions, name = \
+                        additions, deletions, name = (
                             line.strip().split(None, 2)
+                        )
                         totals["files"] += 1
                         if additions != "-":
                             totals["additions"] += int(additions)

eric ide

mercurial