# HG changeset patch # User Goffi # Date 1571694745 -7200 # Node ID d62fceccff22c683ccdf72a07b26d25124b755ad # Parent 84bb63e1e4c41e086d8a594bf54a1c7082e26a96 core (tools/utils): fixed hex conversion in getRepositoryData following Python 3 port diff -r 84bb63e1e4c4 -r d62fceccff22 sat/tools/utils.py --- a/sat/tools/utils.py Mon Oct 21 23:06:30 2019 +0200 +++ b/sat/tools/utils.py Mon Oct 21 23:52:25 2019 +0200 @@ -213,8 +213,8 @@ else: os.chdir(os.path.abspath(os.path.dirname(repos_root))) try: - with open(".hg/dirstate") as hg_dirstate: - hg_data["node"] = hg_dirstate.read(20).encode("hex") + with open(".hg/dirstate", 'rb') as hg_dirstate: + hg_data["node"] = hg_dirstate.read(20).hex() hg_data["node_short"] = hg_data["node"][:12] except IOError: log.debug("Can't access repository data")