changeset 30639 | d524c88511a7 |
parent 30264 | dd3dd80fca10 |
child 34227 | ac96ff471c9a |
--- a/mercurial/hgweb/server.py Sun Dec 18 02:08:59 2016 +0530 +++ b/mercurial/hgweb/server.py Mon Dec 19 00:16:52 2016 +0530 @@ -18,6 +18,7 @@ from .. import ( error, + pycompat, util, ) @@ -266,7 +267,7 @@ class MercurialHTTPServer(_mixin, httpservermod.httpserver, object): # SO_REUSEADDR has broken semantics on windows - if os.name == 'nt': + if pycompat.osname == 'nt': allow_reuse_address = 0 def __init__(self, ui, app, addr, handler, **kwargs):