changeset 6881:d2375bbee6d4 1.0.2

Folding correction and missing import
author Remy Roy <remyroy@remyroy.com>
date Tue, 12 Aug 2008 10:05:00 -0400
parents 892806b3fc0f
children 6ca12c67447c 11229144aa01
files mercurial/util_win32.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: