Mercurial > public > mercurial-scm > hg
comparison mercurial/win32.py @ 14230:d51630301241
rename util.lookup_reg to lookupreg
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 06 May 2011 15:16:22 +0200 |
parents | 9ca1ff3d4f8c |
children | b9e1b041744f |
comparison
equal
deleted
inserted
replaced
14229:85fd8402cbc4 | 14230:d51630301241 |
---|---|
178 return status.value == _STILL_ACTIVE | 178 return status.value == _STILL_ACTIVE |
179 finally: | 179 finally: |
180 _kernel32.CloseHandle(h) | 180 _kernel32.CloseHandle(h) |
181 return _kernel32.GetLastError() != _ERROR_INVALID_PARAMETER | 181 return _kernel32.GetLastError() != _ERROR_INVALID_PARAMETER |
182 | 182 |
183 def lookup_reg(key, valname=None, scope=None): | 183 def lookupreg(key, valname=None, scope=None): |
184 ''' Look up a key/value name in the Windows registry. | 184 ''' Look up a key/value name in the Windows registry. |
185 | 185 |
186 valname: value name. If unspecified, the default value for the key | 186 valname: value name. If unspecified, the default value for the key |
187 is used. | 187 is used. |
188 scope: optionally specify scope for registry lookup, this can be | 188 scope: optionally specify scope for registry lookup, this can be |