~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Matt Nordhoff
  • Date: 2009-05-04 16:10:22 UTC
  • mto: This revision was merged to the branch mainline in revision 341.
  • Revision ID: mnordhoff@mattnordhoff.com-20090504161022-8w6h4d9jqm32wezh
Add NEWS entries for a couple new things

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
                from paste.httpserver import serve
77
77
                a = HTTPExceptionHandler(BranchesFromFileSystemRoot('.'))
78
78
                port = kw.get('port', DEFAULT_PORT)
79
 
                if ':' in port:
 
79
                # port might be an int already...
 
80
                if isinstance(port, basestring) and ':' in port:
80
81
                    host, port = port.split(':')
81
82
                else:
82
83
                    host = '0.0.0.0'