Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 1545:d69070c2547a
fix errors found by pychecker
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 14 Nov 2005 16:10:59 +0100 |
parents | bf4e7ef08741 |
children | 68ec7b9e09a4 |
comparison
equal
deleted
inserted
replaced
1544:b3184bea3eb3 | 1545:d69070c2547a |
---|---|
949 if use_ipv6: | 949 if use_ipv6: |
950 return IPv6HTTPServer((address, port), hgwebhandler) | 950 return IPv6HTTPServer((address, port), hgwebhandler) |
951 else: | 951 else: |
952 return BaseHTTPServer.HTTPServer((address, port), hgwebhandler) | 952 return BaseHTTPServer.HTTPServer((address, port), hgwebhandler) |
953 | 953 |
954 def server(path, name, templates, address, port, use_ipv6=False, | |
955 accesslog=sys.stdout, errorlog=sys.stderr): | |
956 httpd = create_server(path, name, templates, address, port, use_ipv6, | |
957 accesslog, errorlog) # XXX wrong param count | |
958 httpd.serve_forever() | |
959 | |
960 # This is a stopgap | 954 # This is a stopgap |
961 class hgwebdir: | 955 class hgwebdir: |
962 def __init__(self, config): | 956 def __init__(self, config): |
963 def cleannames(items): | 957 def cleannames(items): |
964 return [(name.strip('/'), path) for name, path in items] | 958 return [(name.strip('/'), path) for name, path in items] |