MCPcopy Create free account
hub / github.com/apache/impala / to_host_port

Function to_host_port

tests/common/network.py:54–57  ·  view source on GitHub ↗
(host, port)

Source from the content-addressed store, hash-verified

52
53
54def to_host_port(host, port):
55 is_ipv6_address = ":" in host
56 fmt = "[{0}]:{1}" if is_ipv6_address else "{0}:{1}"
57 return fmt.format(host, port)
58
59
60def run_openssl_cmd(args, timeout_s=3):

Callers 5

open_debug_webpageMethod · 0.90
create_beeswax_clientMethod · 0.90
create_clientMethod · 0.90

Calls 1

formatMethod · 0.45

Tested by 1