mercurial/scmwindows.py
changeset 43811 29adf0a087a1
parent 43788 fe73ec69350e
parent 43453 a50fecefa691
child 43929 9a3ac902d597
--- a/mercurial/scmwindows.py	Tue Dec 03 17:17:57 2019 -0800
+++ b/mercurial/scmwindows.py	Thu Dec 05 11:15:19 2019 -0500
@@ -38,7 +38,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):