Mercurial > hg
changeset 43748:a50fecefa691 stable 5.2.1
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
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 30 Nov 2019 02:13:56 -0500 |
parents | 5470e63686ca |
children | 8849d06363f0 |
files | mercurial/scmwindows.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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):