(value)
Convert an IP address from binary to text.

    :param value: Raw binary data to convert
    :type value: str
    :returns: str
Convert an IP address from binary to text.
Convert an IP address from binary to text .
def convert_ip(value):
    """Convert an IP address from binary to text.

    :param value: Raw binary data to convert
    :type value: str
    :returns: str
    """
    try:
        return socket.inet_ntop(socket.AF_INET, value)
    except ValueError:
        return socket.inet_ntop(socket.AF_INET6, value)
def convert_ip ( value ) : try : return socket . inet_ntop ( socket . AF_INET , value ) except ValueError : return socket . inet_ntop ( socket . AF_INET6 , value )