##// END OF EJS Templates
Fix serve on Windows without win32* modules.
Nathan Jones -
r4803:7549cd52 default
parent child Browse files
Show More
@@ -968,6 +968,12 b" if os.name == 'nt':"
968 968 return p_name_ext
969 969 return default
970 970
971 def set_signal_handler():
972 try:
973 set_signal_handler_win32()
974 except NameError:
975 pass
976
971 977 try:
972 978 # override functions with win32 versions if possible
973 979 from util_win32 import *
@@ -300,7 +300,7 b' class posixfile_nt(object):'
300 300
301 301 getuser_fallback = win32api.GetUserName
302 302
303 def set_signal_handler():
303 def set_signal_handler_win32():
304 304 """Register a termination handler for console events including
305 305 CTRL+C. python signal handlers do not work well with socket
306 306 operations.
General Comments 0
You need to be logged in to leave comments. Login now