Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/server.py @ 2507:7e01da2bc7f3
Fix two small bugs that would've prevented the web interface and IPv6
from working.
author | Eric Hopper <hopper@omnifarious.org> |
---|---|
date | Tue, 27 Jun 2006 00:09:35 -0700 |
parents | d0db3462d568 |
children | ab460a3f0e3a |
comparison
equal
deleted
inserted
replaced
2506:d0db3462d568 | 2507:7e01da2bc7f3 |
---|---|
194 address_family = getattr(socket, 'AF_INET6', None) | 194 address_family = getattr(socket, 'AF_INET6', None) |
195 | 195 |
196 def __init__(self, *args, **kwargs): | 196 def __init__(self, *args, **kwargs): |
197 if self.address_family is None: | 197 if self.address_family is None: |
198 raise hg.RepoError(_('IPv6 not available on this system')) | 198 raise hg.RepoError(_('IPv6 not available on this system')) |
199 super(IPv6HTTPServer, self).__init__(*args, **kargs) | 199 super(IPv6HTTPServer, self).__init__(*args, **kwargs) |
200 | 200 |
201 if use_ipv6: | 201 if use_ipv6: |
202 return IPv6HTTPServer((address, port), _hgwebhandler) | 202 return IPv6HTTPServer((address, port), _hgwebhandler) |
203 else: | 203 else: |
204 return MercurialHTTPServer((address, port), _hgwebhandler) | 204 return MercurialHTTPServer((address, port), _hgwebhandler) |