eric6/PipInterface/PipPackageDetailsDialog.py

changeset 8222
5994b80b8760
parent 8218
7c09585bd960
child 8228
772103b14c18
--- a/eric6/PipInterface/PipPackageDetailsDialog.py	Sun Apr 11 16:53:48 2021 +0200
+++ b/eric6/PipInterface/PipPackageDetailsDialog.py	Sun Apr 11 18:45:10 2021 +0200
@@ -193,13 +193,12 @@
             text = self.tr("any")
         elif text is None:
             text = ""
-        if forUrl:
-            if (
-                not isinstance(text, str) or
-                not text.startswith(("http://", "https://", "ftp://"))
-            ):
-                # ignore if the schema is not one of the listed ones
-                text = ""
+        if forUrl and (
+            not isinstance(text, str) or
+            not text.startswith(("http://", "https://", "ftp://"))
+        ):
+            # ignore if the schema is not one of the listed ones
+            text = ""
         
         return text
     

eric ide

mercurial