eric6/E5Gui/E5ProcessDialog.py

changeset 7252
c5e3705073eb
parent 7229
53054eb5b15a
child 7354
d6aec4160f6b
diff -r bc5b1b00560a -r c5e3705073eb eric6/E5Gui/E5ProcessDialog.py
--- a/eric6/E5Gui/E5ProcessDialog.py	Sat Sep 21 13:37:58 2019 +0200
+++ b/eric6/E5Gui/E5ProcessDialog.py	Sat Sep 21 15:37:43 2019 +0200
@@ -10,8 +10,9 @@
 
 import os
 
-from PyQt5.QtCore import QProcess, QTimer, pyqtSlot, Qt, QCoreApplication, \
-    QProcessEnvironment
+from PyQt5.QtCore import (
+    QProcess, QTimer, pyqtSlot, Qt, QCoreApplication, QProcessEnvironment
+)
 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QLineEdit
 
 from E5Gui import E5MessageBox
@@ -62,8 +63,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)

eric ide

mercurial