##// END OF EJS Templates
Folding correction and missing import
Remy Roy -
r6881:d2375bbe 1.0.2 default
parent child Browse files
Show More
@@ -16,6 +16,7 b' import win32api'
16 import errno, os, sys, pywintypes, win32con, win32file, win32process
16 import errno, os, sys, pywintypes, win32con, win32file, win32process
17 import cStringIO, winerror
17 import cStringIO, winerror
18 import osutil
18 import osutil
19 import util
19 from win32com.shell import shell,shellcon
20 from win32com.shell import shell,shellcon
20
21
21 class WinError:
22 class WinError:
@@ -207,7 +208,7 b' def lookup_reg(key, valname=None, scope='
207 scope = (scope,)
208 scope = (scope,)
208 for s in scope:
209 for s in scope:
209 try:
210 try:
210 val = QueryValueEx(OpenKey(scope, key), valname)[0]
211 val = QueryValueEx(OpenKey(s, key), valname)[0]
211 # never let a Unicode string escape into the wild
212 # never let a Unicode string escape into the wild
212 return util.tolocal(val.encode('UTF-8'))
213 return util.tolocal(val.encode('UTF-8'))
213 except EnvironmentError:
214 except EnvironmentError:
General Comments 0
You need to be logged in to leave comments. Login now