eric6/VirtualEnv/VirtualenvExecDialog.py

changeset 7259
7c017076c12e
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r aff39db4dacc -r 7c017076c12e eric6/VirtualEnv/VirtualenvExecDialog.py
--- a/eric6/VirtualEnv/VirtualenvExecDialog.py	Mon Sep 23 19:10:42 2019 +0200
+++ b/eric6/VirtualEnv/VirtualenvExecDialog.py	Mon Sep 23 19:22:12 2019 +0200
@@ -138,8 +138,10 @@
         @param exitStatus exit status of the process (QProcess.ExitStatus)
         @keyparam giveUp flag indicating to not start another attempt (boolean)
         """
-        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