mercurial/util.py
changeset 6135 be91a77b7f18
parent 6134 7b937b26adf7
parent 6132 1ee95f7df611
child 6139 989467e8e3a9
--- a/mercurial/util.py	Sat Feb 16 13:33:38 2008 +0100
+++ b/mercurial/util.py	Sat Feb 16 13:34:11 2008 +0100
@@ -901,6 +901,9 @@
     '''Are we running in a GUI?'''
     return os.name == "nt" or os.name == "mac" or os.environ.get("DISPLAY")
 
+def lookup_reg(key, name=None, scope=None):
+    return None
+
 # Platform specific variants
 if os.name == 'nt':
     import msvcrt
@@ -1092,9 +1095,6 @@
 else:
     nulldev = '/dev/null'
 
-    def lookup_reg(key, name=None, scope=None):
-        return None
-
     def rcfiles(path):
         rcs = [os.path.join(path, 'hgrc')]
         rcdir = os.path.join(path, 'hgrc.d')