MCPcopy Index your code
hub / github.com/aws/aws-cli / _is_ipaddress

Function _is_ipaddress

awscli/botocore/httpsession.py:215–217  ·  view source on GitHub ↗

Wrap urllib3's is_ipaddress to support bracketed IPv6 addresses.

(host)

Source from the content-addressed store, hash-verified

213
214
215def _is_ipaddress(host):
216 """Wrap urllib3's is_ipaddress to support bracketed IPv6 addresses."""
217 return is_ipaddress(host) or bool(IPV6_ADDRZ_RE.match(host))
218
219
220class ProxyConfiguration:

Callers 1

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected