--- 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: