Commit c170b626 authored by Matt Harbison's avatar Matt Harbison

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

--HG--
branch : stable
parent 5470e63686ca
......@@ -37,7 +37,7 @@ def systemrcpath():
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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment