comparison mercurial/util_win32.py @ 6012:e45de0f47215

util_win32: add missing valname param to query_val function
author Lee Cantey <lcantey@gmail.com>
date Sun, 03 Feb 2008 23:08:16 -0800
parents 3c9dbb743d20
children 09a8be3e5bfb
comparison
equal deleted inserted replaced
6011:15a53af36a89 6012:e45de0f47215
200 from _winreg import HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, \ 200 from _winreg import HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, \
201 QueryValueEx, OpenKey 201 QueryValueEx, OpenKey
202 except ImportError: 202 except ImportError:
203 return None 203 return None
204 204
205 def query_val(scope, key): 205 def query_val(scope, key, valname):
206 try: 206 try:
207 keyhandle = OpenKey(scope, key) 207 keyhandle = OpenKey(scope, key)
208 return QueryValueEx(keyhandle, valname)[0] 208 return QueryValueEx(keyhandle, valname)[0]
209 except EnvironmentError: 209 except EnvironmentError:
210 return None 210 return None