Mercurial > hg
changeset 16808:572d5e254f20
scmutil: use _winreg.HKEY_LOCAL_MACHINE
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sun, 27 May 2012 11:30:03 +0200 |
parents | 80142f385af9 |
children | 6b704fa2bea1 |
files | mercurial/scmutil.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/scmutil.py Sun May 27 11:29:52 2012 +0200 +++ b/mercurial/scmutil.py Sun May 27 11:30:03 2012 +0200 @@ -465,7 +465,7 @@ else: - _HKEY_LOCAL_MACHINE = 0x80000002L + import _winreg def systemrcpath(): '''return default os-specific hgrc search path''' @@ -485,7 +485,7 @@ return rcpath # else look for a system rcpath in the registry value = util.lookupreg('SOFTWARE\\Mercurial', None, - _HKEY_LOCAL_MACHINE) + _winreg.HKEY_LOCAL_MACHINE) if not isinstance(value, str) or not value: return rcpath value = util.localpath(value)