def parse_ipv6_parameter(bind_parameter):
    if isinstance(bind_parameter, int):
        try:
            _, _, _, _, bind \
                = getaddrinfo(getfqdn(), bind_parameter, AF_INET6)[0]
        except (gaierror, __HOLE__):
            bind = ("::", bind_parameter)
    else:
        bind = bind_parameter

    return bind
dataset/ETHPy150Open circuits/circuits/circuits/net/sockets.py/parse_ipv6_parameter