~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Matt Nordhoff
  • Date: 2009-10-15 23:12:10 UTC
  • Revision ID: mnordhoff@mattnordhoff.com-20091015231210-rpjxtt6w3qsd6h9z
Avoid using "dict.keys()" and "dict.items()" in a couple places, in favor of "dict.iter*()".

I can't see how this could possibly break anything. Watch the universe prove me wrong!

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
 
 
65
62
        # loggerhead internal code will try to 'import loggerhead', so
66
63
        # let's put it on the path if we can't find it in the existing path
67
64
        try:
72
69
 
73
70
        from loggerhead.apps.transport import BranchesFromTransportRoot
74
71
        from loggerhead.config import LoggerheadConfig
75
 
 
 
72
        from paste.httpexceptions import HTTPExceptionHandler
 
73
        from paste.httpserver import serve
76
74
        if host is None:
77
75
            host = DEFAULT_HOST
78
76
        if port is None: