eric6/PipInterface/PipDialog.py

changeset 7255
d595f6f9cbf8
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/PipInterface/PipDialog.py	Sat Sep 21 17:41:22 2019 +0200
+++ b/eric6/PipInterface/PipDialog.py	Sat Sep 21 18:30:02 2019 +0200
@@ -8,8 +8,9 @@
 """
 
 
-from PyQt5.QtCore import pyqtSlot, Qt, QCoreApplication, QTimer, \
-    QProcess
+from PyQt5.QtCore import (
+    pyqtSlot, Qt, QCoreApplication, QTimer, QProcess
+)
 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QAbstractButton
 
 from E5Gui import E5MessageBox
@@ -54,8 +55,10 @@
         """
         self.__processQueue = []
         
-        if self.proc is not None and \
-           self.proc.state() != QProcess.NotRunning:
+        if (
+            self.proc is not None and
+            self.proc.state() != QProcess.NotRunning
+        ):
             self.proc.terminate()
             QTimer.singleShot(2000, self.proc.kill)
             self.proc.waitForFinished(3000)
@@ -69,8 +72,10 @@
         Private slot called when the process finished or the user pressed
         the button.
         """
-        if self.proc is not None and \
-           self.proc.state() != QProcess.NotRunning:
+        if (
+            self.proc is not None and
+            self.proc.state() != QProcess.NotRunning
+        ):
             self.proc.terminate()
             QTimer.singleShot(2000, self.proc.kill)
             self.proc.waitForFinished(3000)

eric ide

mercurial