eric6/CondaInterface/CondaExecDialog.py

changeset 7250
d8bdc55aee1a
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r 0bf517e60f54 -r d8bdc55aee1a eric6/CondaInterface/CondaExecDialog.py
--- a/eric6/CondaInterface/CondaExecDialog.py	Thu Sep 19 19:39:04 2019 +0200
+++ b/eric6/CondaInterface/CondaExecDialog.py	Sat Sep 21 13:03:17 2019 +0200
@@ -117,8 +117,8 @@
         @param giveUp flag indicating to not start another attempt
         @type bool
         """
-        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)
@@ -150,8 +150,8 @@
             if "error" in self.__result:
                 self.__logError(self.__result["error"])
                 self.__statusOk = False
-            elif "success" in self.__result and \
-                    not self.__result["success"]:
+            elif ("success" in self.__result and
+                    not self.__result["success"]):
                 self.__logError(
                     self.tr("Conda command '{0}' did not return success.")
                     .format(self.__condaCommand))

eric ide

mercurial