Folding correction and missing import 1.0.2
authorRemy Roy <remyroy@remyroy.com>
Tue, 12 Aug 2008 10:05:00 -0400
changeset 6881 d2375bbee6d4
parent 6880 892806b3fc0f
child 6882 6ca12c67447c
child 6884 11229144aa01
Folding correction and missing import
mercurial/util_win32.py
--- a/mercurial/util_win32.py	Sun Aug 10 22:55:00 2008 -0500
+++ b/mercurial/util_win32.py	Tue Aug 12 10:05:00 2008 -0400
@@ -16,6 +16,7 @@
 import errno, os, sys, pywintypes, win32con, win32file, win32process
 import cStringIO, winerror
 import osutil
+import util
 from win32com.shell import shell,shellcon
 
 class WinError:
@@ -207,7 +208,7 @@
         scope = (scope,)
     for s in scope:
         try:
-            val = QueryValueEx(OpenKey(scope, key), valname)[0]
+            val = QueryValueEx(OpenKey(s, key), valname)[0]
             # never let a Unicode string escape into the wild
             return util.tolocal(val.encode('UTF-8'))
         except EnvironmentError: