comparison 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
comparison
equal deleted inserted replaced
4801:3a4310e8fe72 4802:7549cd526b7f
966 p_name_ext = p_name + ext 966 p_name_ext = p_name + ext
967 if os.path.exists(p_name_ext): 967 if os.path.exists(p_name_ext):
968 return p_name_ext 968 return p_name_ext
969 return default 969 return default
970 970
971 def set_signal_handler():
972 try:
973 set_signal_handler_win32()
974 except NameError:
975 pass
976
971 try: 977 try:
972 # override functions with win32 versions if possible 978 # override functions with win32 versions if possible
973 from util_win32 import * 979 from util_win32 import *
974 if not is_win_9x(): 980 if not is_win_9x():
975 posixfile = posixfile_nt 981 posixfile = posixfile_nt