fix parse_host_port() is_ip call

This commit is contained in:
Jeremy McMillan 2019-01-01 15:52:40 -06:00 committed by Pedro Algarvio
parent 89519fea0b
commit f8bd08e6f2

View file

@ -1956,7 +1956,7 @@ def parse_host_port(host_port):
port = int(port)
if port and ":" in port:
raise ValueError('too many ":" separators in host:port "{}"'.format(host_port))
if ipaddress.is_ip(host):
if is_ip(host):
host = ipaddress.ip_address(host)
return host, port