Skip to content
Snippets Groups Projects
Commit a50fecefa691 authored by Matt Harbison's avatar Matt Harbison
Browse files

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
parent 5470e63686ca
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment