diff mercurial/hgweb.py @ 2124:27fd8b7a6c51

Cleaned trailing whitespace in hgweb.py, removed command line shortcut for webdir-conf.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Tue, 25 Apr 2006 00:43:40 +0200
parents c0729a7f6f8a
children 8a85dbbadddf
line wrap: on
line diff
--- a/mercurial/hgweb.py	Sun Apr 23 00:34:07 2006 +0200
+++ b/mercurial/hgweb.py	Tue Apr 25 00:43:40 2006 +0200
@@ -891,7 +891,7 @@
 
 def create_server(repo):
     use_threads = True
-    
+
     def openlog(opt, default):
         if opt and opt != '-':
             return open(opt, 'w')
@@ -903,7 +903,7 @@
     webdir_conf = repo.ui.config("web", "webdir_conf")
     accesslog = openlog(repo.ui.config("web", "accesslog", "-"), sys.stdout)
     errorlog = openlog(repo.ui.config("web", "errorlog", "-"), sys.stderr)
-    
+
     if use_threads:
         try:
             from threading import activeCount
@@ -920,7 +920,7 @@
 
     class MercurialHTTPServer(_mixin, BaseHTTPServer.HTTPServer):
         pass
-    
+
     class IPv6HTTPServer(MercurialHTTPServer):
         address_family = getattr(socket, 'AF_INET6', None)
 
@@ -953,7 +953,7 @@
 
         def do_hgweb(self):
             path_info, query = splitURI(self.path)
-            
+
             env = {}
             env['GATEWAY_INTERFACE'] = 'CGI/1.1'
             env['REQUEST_METHOD'] = self.command
@@ -991,7 +991,7 @@
             else:
                 hgwebobj = hgweb(repo.__class__(repo.ui, repo.origroot))
             hgwebobj.run(req)
- 
+
 
     if use_ipv6:
         return IPv6HTTPServer((address, port), hgwebhandler)