##// 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 16 import errno, os, sys, pywintypes, win32con, win32file, win32process
17 17 import cStringIO, winerror
18 18 import osutil
19 import util
19 20 from win32com.shell import shell,shellcon
20 21
21 22 class WinError:
@@ -207,7 +208,7 b' def lookup_reg(key, valname=None, scope='
207 208 scope = (scope,)
208 209 for s in scope:
209 210 try:
210 val = QueryValueEx(OpenKey(scope, key), valname)[0]
211 val = QueryValueEx(OpenKey(s, key), valname)[0]
211 212 # never let a Unicode string escape into the wild
212 213 return util.tolocal(val.encode('UTF-8'))
213 214 except EnvironmentError:
General Comments 0
You need to be logged in to leave comments. Login now