diff 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
line wrap: on
line diff
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -951,12 +951,6 @@ def create_server(repo):
     else:
         return BaseHTTPServer.HTTPServer((address, port), hgwebhandler)
 
-def server(path, name, templates, address, port, use_ipv6=False,
-           accesslog=sys.stdout, errorlog=sys.stderr):
-    httpd = create_server(path, name, templates, address, port, use_ipv6,
-                          accesslog, errorlog) # XXX wrong param count
-    httpd.serve_forever()
-
 # This is a stopgap
 class hgwebdir:
     def __init__(self, config):