~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Matt Nordhoff
  • Date: 2009-10-17 09:28:42 UTC
  • mto: This revision was merged to the branch mainline in revision 406.
  • Revision ID: mnordhoff@mattnordhoff.com-20091017092842-o9oefagbqdh7ud4t
Remove trailing whitespace in the non-Python files too

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
"""Loggerhead web viewer for Bazaar branches.
28
28
 
29
 
This provides a new option "--http" to the "bzr serve" command, that 
 
29
This provides a new option "--http" to the "bzr serve" command, that
30
30
starts a web server to browse the contents of a branch.
31
31
"""
32
32
 
59
59
            (DEFAULT_PORT,))
60
60
 
61
61
    def serve_http(transport, host=None, port=None, inet=None):
 
62
        from paste.httpexceptions import HTTPExceptionHandler
 
63
        from paste.httpserver import serve
 
64
 
62
65
        # loggerhead internal code will try to 'import loggerhead', so
63
66
        # let's put it on the path if we can't find it in the existing path
64
67
        try:
69
72
 
70
73
        from loggerhead.apps.transport import BranchesFromTransportRoot
71
74
        from loggerhead.config import LoggerheadConfig
72
 
        from paste.httpexceptions import HTTPExceptionHandler
73
 
        from paste.httpserver import serve
 
75
 
74
76
        if host is None:
75
77
            host = DEFAULT_HOST
76
78
        if port is None: