scripts/install.py

branch
eric7
changeset 9278
36448ca469c2
parent 9261
66cc5e304450
child 9305
3b7ef53c34c7
child 9314
7ba79b00ea96
--- a/scripts/install.py	Thu Jul 28 19:44:54 2022 +0200
+++ b/scripts/install.py	Fri Jul 29 16:29:31 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