Function
urllib.splithost

Signature

splithost(url)

Documentation String

splithost(//host[:port]/path) --> host[:port], /path.