~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Matt Nordhoff
  • Date: 2009-10-17 06:19:40 UTC
  • mto: (329.2.2 trailing-whitespace)
  • mto: This revision was merged to the branch mainline in revision 392.
  • Revision ID: mnordhoff@mattnordhoff.com-20091017061940-w9tcvy0xs1irno3y
Some random PEP 8 and otehr stylistic changes.

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: