parameters: (netloc)
return_statement: return parsed.hostname, parsed.port
docstring: Return the host-port pair from a netloc.
docstring_summary: Return the host-port pair from a netloc.
docstring_tokens: Return the host - port pair from a netloc .
function: def parse_netloc(netloc):
      # type: (str) -> Tuple[str, Optional[int]]
      """
      Return the host-port pair from a netloc.
      """
      url = build_url_from_netloc(netloc)
      parsed = urllib.parse.urlparse(url)
      return parsed.hostname, parsed.port
function_tokens: def parse_netloc ( netloc ) : # type: (str) -> Tuple[str, Optional[int]] url = build_url_from_netloc ( netloc ) parsed = urllib . parse . urlparse ( url ) return parsed . hostname , parsed . port