diff mercurial/util.py @ 4802:7549cd526b7f

Fix serve on Windows without win32* modules.
author Nathan Jones <nathanj@insightbb.com>
date Tue, 26 Jun 2007 10:48:58 -0400
parents 72fb6f10fac1
children 89defeae88f3
line wrap: on
line diff
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -968,6 +968,12 @@ if os.name == 'nt':
                     return p_name_ext
         return default
 
+    def set_signal_handler():
+        try:
+            set_signal_handler_win32()
+        except NameError:
+            pass
+
     try:
         # override functions with win32 versions if possible
         from util_win32 import *