eric6/VirtualEnv/VirtualenvManagerDialog.py

changeset 7259
7c017076c12e
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/VirtualEnv/VirtualenvManagerDialog.py	Mon Sep 23 19:10:42 2019 +0200
+++ b/eric6/VirtualEnv/VirtualenvManagerDialog.py	Mon Sep 23 19:22:12 2019 +0200
@@ -54,17 +54,22 @@
         
         deletableSelectedItemCount = 0
         for itm in self.venvList.selectedItems():
-            if itm.text(0) != "<default>" and \
-               bool(itm.text(1)) and \
-               not itm.data(0, VirtualenvManagerDialog.IsGlobalRole) and \
-               not itm.data(0, VirtualenvManagerDialog.IsRemoteRole):
+            if (
+                itm.text(0) != "<default>" and
+                bool(itm.text(1)) and
+                not itm.data(0, VirtualenvManagerDialog.IsGlobalRole) and
+                not itm.data(0, VirtualenvManagerDialog.IsRemoteRole)
+            ):
                 deletableSelectedItemCount += 1
         
         deletableItemCount = 0
         for index in range(topLevelItemCount):
             itm = self.venvList.topLevelItem(index)
-            if itm.text(0) != "<default>" and bool(itm.text(1)) and \
-               not itm.data(0, VirtualenvManagerDialog.IsRemoteRole):
+            if (
+                itm.text(0) != "<default>" and
+                bool(itm.text(1)) and
+                not itm.data(0, VirtualenvManagerDialog.IsRemoteRole)
+            ):
                 deletableItemCount += 1
         
         canBeRemoved = (

eric ide

mercurial