scripts/install.py

branch
eric7-maintenance
changeset 9305
3b7ef53c34c7
parent 9264
18a7312cfdb3
parent 9278
36448ca469c2
child 9371
1da8bc75946f
--- a/scripts/install.py	Mon Jul 25 16:58:55 2022 +0200
+++ b/scripts/install.py	Fri Sep 02 14:07:46 2022 +0200
@@ -1541,12 +1541,16 @@
     @rtype bool
     """
     try:
-        pipOut = subprocess.run(  # secok
-            [sys.executable, "-m", "pip", "list", "--outdated", "--format=json"],
-            check=True,
-            capture_output=True,
-            text=True,
-        ).stdout.strip().splitlines()[0]
+        pipOut = (
+            subprocess.run(  # secok
+                [sys.executable, "-m", "pip", "list", "--outdated", "--format=json"],
+                check=True,
+                capture_output=True,
+                text=True,
+            )
+            .stdout.strip()
+            .splitlines()[0]
+        )
         # only the first line contains the JSON data
     except (OSError, subprocess.CalledProcessError):
         pipOut = "[]"  # default empty list

eric ide

mercurial