# HG changeset patch # User Adrian Buehlmann # Date 1338111003 -7200 # Node ID 572d5e254f2053ec722f8e40977233c9609a59f1 # Parent 80142f385af99725bb97f682718122d96b7acf08 scmutil: use _winreg.HKEY_LOCAL_MACHINE diff -r 80142f385af9 -r 572d5e254f20 mercurial/scmutil.py --- 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)