src/eric7/PipInterface/Pip.py

branch
eric7
changeset 9278
36448ca469c2
parent 9260
eb19dcb8d852
child 9305
3b7ef53c34c7
child 9309
60ee3f038f52
--- a/src/eric7/PipInterface/Pip.py	Thu Jul 28 19:44:54 2022 +0200
+++ b/src/eric7/PipInterface/Pip.py	Fri Jul 29 16:29:31 2022 +0200
@@ -636,11 +636,15 @@
                 proc = QProcess()
                 proc.start(interpreter, args)
                 if proc.waitForStarted(15000) and proc.waitForFinished(30000):
-                    output = str(
-                        proc.readAllStandardOutput(),
-                        Preferences.getSystem("IOEncoding"),
-                        "replace",
-                    ).strip().splitlines()[0]
+                    output = (
+                        str(
+                            proc.readAllStandardOutput(),
+                            Preferences.getSystem("IOEncoding"),
+                            "replace",
+                        )
+                        .strip()
+                        .splitlines()[0]
+                    )
                     try:
                         jsonList = json.loads(output)
                     except Exception:
@@ -703,11 +707,15 @@
                 proc = QProcess()
                 proc.start(interpreter, args)
                 if proc.waitForStarted(15000) and proc.waitForFinished(30000):
-                    output = str(
-                        proc.readAllStandardOutput(),
-                        Preferences.getSystem("IOEncoding"),
-                        "replace",
-                    ).strip().splitlines()[0]
+                    output = (
+                        str(
+                            proc.readAllStandardOutput(),
+                            Preferences.getSystem("IOEncoding"),
+                            "replace",
+                        )
+                        .strip()
+                        .splitlines()[0]
+                    )
                     try:
                         jsonList = json.loads(output)
                     except Exception:

eric ide

mercurial