eric6/VirtualEnv/VirtualenvManager.py

changeset 7259
7c017076c12e
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/VirtualEnv/VirtualenvManager.py	Mon Sep 23 19:10:42 2019 +0200
+++ b/eric6/VirtualEnv/VirtualenvManager.py	Mon Sep 23 19:22:12 2019 +0200
@@ -77,8 +77,10 @@
         #
         for venvName in environments:
             environment = environments[venvName]
-            if ("is_remote" in environment and environment["is_remote"]) or \
-               os.access(environment["interpreter"], os.X_OK):
+            if (
+                ("is_remote" in environment and environment["is_remote"]) or
+                os.access(environment["interpreter"], os.X_OK)
+            ):
                 if "is_global" not in environment:
                     environment["is_global"] = environment["path"] == ""
                 if "is_conda" not in environment:
@@ -157,8 +159,9 @@
         """
         Public slot to create a new virtual environment.
         """
-        from .VirtualenvConfigurationDialog import \
+        from .VirtualenvConfigurationDialog import (
             VirtualenvConfigurationDialog
+        )
         
         dlg = VirtualenvConfigurationDialog()
         if dlg.exec_() == QDialog.Accepted:
@@ -225,8 +228,9 @@
                 venvName = dlg.getName()
         
         if not venvInterpreter:
-            from .VirtualenvInterpreterSelectionDialog import \
+            from .VirtualenvInterpreterSelectionDialog import (
                 VirtualenvInterpreterSelectionDialog
+            )
             dlg = VirtualenvInterpreterSelectionDialog(venvName, venvDirectory)
             if dlg.exec_() == QDialog.Accepted:
                 venvInterpreter, venvVariant = dlg.getData()
@@ -349,13 +353,16 @@
         """
         venvMessages = []
         for venvName in venvNames:
-            if venvName in self.__virtualEnvironments and \
-                    bool(self.__virtualEnvironments[venvName]["path"]):
+            if (
+                venvName in self.__virtualEnvironments and
+                bool(self.__virtualEnvironments[venvName]["path"])
+            ):
                 venvMessages.append(self.tr("{0} - {1}").format(
                     venvName, self.__virtualEnvironments[venvName]["path"]))
         if venvMessages:
-            from UI.DeleteFilesConfirmationDialog import \
+            from UI.DeleteFilesConfirmationDialog import (
                 DeleteFilesConfirmationDialog
+            )
             dlg = DeleteFilesConfirmationDialog(
                 None,
                 self.tr("Delete Virtual Environments"),
@@ -418,8 +425,9 @@
                 venvMessages.append(self.tr("{0} - {1}").format(
                     venvName, self.__virtualEnvironments[venvName]["path"]))
         if venvMessages:
-            from UI.DeleteFilesConfirmationDialog import \
+            from UI.DeleteFilesConfirmationDialog import (
                 DeleteFilesConfirmationDialog
+            )
             dlg = DeleteFilesConfirmationDialog(
                 None,
                 self.tr("Remove Virtual Environments"),

eric ide

mercurial