setup.py

branch
eric7-maintenance
changeset 8967
3f77fa22d9d2
parent 8966
c6f67dbc6ee7
child 8977
663521af48b2
diff -r 7dde4fcc909b -r 3f77fa22d9d2 setup.py
--- a/setup.py	Tue Feb 08 14:16:12 2022 +0100
+++ b/setup.py	Fri Mar 04 18:06:25 2022 +0100
@@ -141,8 +141,10 @@
     with contextlib.suppress(OSError):
         os.rename(fileName, fileName + ".orig")
     try:
-        hgOut = subprocess.check_output(["hg", "identify", "-i"])       # secok
-        hgOut = hgOut.decode()
+        hgOut = subprocess.run(                     # secok
+            ["hg", "identify", "-i"], check=True,
+            capture_output=True, text=True
+        ).stdout
     except (OSError, subprocess.CalledProcessError):
         hgOut = ""
     if hgOut:

eric ide

mercurial