~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to __init__.py

Merge my old pep8 branch

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: