--- a/setup.py Sat Sep 07 14:45:27 2019 +0200 +++ b/setup.py Sat Sep 07 16:10:29 2019 +0200 @@ -137,8 +137,7 @@ pass try: hgOut = subprocess.check_output(["hg", "identify", "-i"]) - if sys.version_info[0] == 3: - hgOut = hgOut.decode() + hgOut = hgOut.decode() except (OSError, subprocess.CalledProcessError): hgOut = "" if hgOut: