Show More
@@ -37,7 +37,7 b' def systemrcpath():' | |||||
37 | value = util.lookupreg( |
|
37 | value = util.lookupreg( | |
38 | b'SOFTWARE\\Mercurial', None, winreg.HKEY_LOCAL_MACHINE |
|
38 | b'SOFTWARE\\Mercurial', None, winreg.HKEY_LOCAL_MACHINE | |
39 | ) |
|
39 | ) | |
40 |
if not isinstance(value, |
|
40 | if not isinstance(value, bytes) or not value: | |
41 | return rcpath |
|
41 | return rcpath | |
42 | value = util.localpath(value) |
|
42 | value = util.localpath(value) | |
43 | for p in value.split(pycompat.ospathsep): |
|
43 | for p in value.split(pycompat.ospathsep): |
General Comments 0
You need to be logged in to leave comments.
Login now