~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Matt Nordhoff
  • Date: 2009-10-21 14:34:51 UTC
  • mfrom: (389.2.8 pep8-2009-10)
  • Revision ID: mnordhoff@mattnordhoff.com-20091021143451-zods0s068h7isect
A bunch of random PEP 8 and stylistic improvements. Also fix a typo on error pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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: