# HG changeset patch # User Matt Harbison # Date 1575098036 18000 # Node ID a50fecefa691c9b72a99e49aa6fe9dd13943c2bf # Parent 5470e63686ca82ca765b3f2871b92552b5ec0a42 windows: fix an issue causing registry config paths to be ignored on py3 `util.lookupreg()` returns bytes. Differential Revision: https://phab.mercurial-scm.org/D7532 diff -r 5470e63686ca -r a50fecefa691 mercurial/scmwindows.py --- a/mercurial/scmwindows.py Mon Dec 02 10:18:18 2019 +0100 +++ b/mercurial/scmwindows.py Sat Nov 30 02:13:56 2019 -0500 @@ -37,7 +37,7 @@ value = util.lookupreg( b'SOFTWARE\\Mercurial', None, winreg.HKEY_LOCAL_MACHINE ) - if not isinstance(value, str) or not value: + if not isinstance(value, bytes) or not value: return rcpath value = util.localpath(value) for p in value.split(pycompat.ospathsep):