#NEWLINE# def get_host( url ) : #NEWLINE# #INDENT# '\n    Deprecated. Use :func:`.parse_url` instead.\n    ' #NEWLINE# p = parse_url ( url ) #NEWLINE# return ( ( p . scheme or 'http' ) , p . hostname , p . port )