equal
deleted
inserted
replaced
261 def openlog(opt, default): |
261 def openlog(opt, default): |
262 if opt and opt != '-': |
262 if opt and opt != '-': |
263 return open(opt, 'a') |
263 return open(opt, 'a') |
264 return default |
264 return default |
265 |
265 |
266 class MercurialHTTPServer(object, _mixin, httpservermod.httpserver): |
266 class MercurialHTTPServer(_mixin, httpservermod.httpserver, object): |
267 |
267 |
268 # SO_REUSEADDR has broken semantics on windows |
268 # SO_REUSEADDR has broken semantics on windows |
269 if os.name == 'nt': |
269 if os.name == 'nt': |
270 allow_reuse_address = 0 |
270 allow_reuse_address = 0 |
271 |
271 |