mercurial/util_win32.py
changeset 4802 7549cd526b7f
parent 4672 272c0a09b203
child 4902 8a53b39cd402
equal deleted inserted replaced
4801:3a4310e8fe72 4802:7549cd526b7f
   298         except pywintypes.error, err:
   298         except pywintypes.error, err:
   299             raise WinIOError(err)
   299             raise WinIOError(err)
   300 
   300 
   301 getuser_fallback = win32api.GetUserName
   301 getuser_fallback = win32api.GetUserName
   302 
   302 
   303 def set_signal_handler():
   303 def set_signal_handler_win32():
   304     """Register a termination handler for console events including
   304     """Register a termination handler for console events including
   305     CTRL+C. python signal handlers do not work well with socket
   305     CTRL+C. python signal handlers do not work well with socket
   306     operations.
   306     operations.
   307     """
   307     """
   308     def handler(event):
   308     def handler(event):