author | Bryan O'Sullivan <bos@serpentine.com> |
Fri, 12 Aug 2005 07:42:32 -0800 | |
changeset 883 | 63ca8a68d59e |
parent 880 | 409a9a7b0da2 (current diff) |
parent 882 | bc9ca4d51d23 (diff) |
child 884 | 087771ebe2e6 |
.hgignore | file | annotate | diff | comparison | revisions | |
CONTRIBUTORS | file | annotate | diff | comparison | revisions | |
TODO | file | annotate | diff | comparison | revisions | |
doc/hg.1.txt | file | annotate | diff | comparison | revisions | |
mercurial/commands.py | file | annotate | diff | comparison | revisions | |
mercurial/hg.py | file | annotate | diff | comparison | revisions | |
mercurial/hgweb.py | file | annotate | diff | comparison | revisions | |
mercurial/revlog.py | file | annotate | diff | comparison | revisions | |
mercurial/util.py | file | annotate | diff | comparison | revisions | |
templates/map | file | annotate | diff | comparison | revisions | |
tests/test-help | file | annotate | diff | comparison | revisions | |
tests/test-help.out | file | annotate | diff | comparison | revisions |
--- a/mercurial/hgweb.py Fri Aug 12 07:12:08 2005 -0800 +++ b/mercurial/hgweb.py Fri Aug 12 07:42:32 2005 -0800 @@ -708,7 +708,12 @@ import BaseHTTPServer class IPv6HTTPServer(BaseHTTPServer.HTTPServer): - address_family = socket.AF_INET6 + address_family = getattr(socket, 'AF_INET6', None) + + def __init__(self, *args, **kwargs): + if self.address_family is None: + raise RepoError('IPv6 not available on this system') + BaseHTTPServer.HTTPServer.__init__(self, *args, **kwargs) class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler): def log_error(self, format, *args):