(url)
return p.scheme or 'http', p.hostname, p.port
Deprecated. Use :func:`parse_url` instead.
Deprecated. Use :func:`parse_url` instead.
Deprecated . Use : func : parse_url instead .
def get_host(url):
    """
    Deprecated. Use :func:`parse_url` instead.
    """
    p = parse_url(url)
    return p.scheme or 'http', p.hostname, p.port
def get_host ( url ) : p = parse_url ( url ) return p . scheme or 'http' , p . hostname , p . port