kmip/core/enums.py
def get_enumerations_from_bit_mask(enumeration, mask):
    """
    A utility function that creates a list of enumeration values from a bit
    mask for a specific mask enumeration class.

    Args:
        enumeration (class): The enumeration class from which to draw
            enumeration values.
        mask (int): The bit mask from which to identify enumeration values.

    Returns:
        list: A list of enumeration values corresponding to the bit mask.
    """
    return [x for x in enumeration if (x.value & mask) == x.value]
def get_enumerations_from_bit_mask(enumeration, mask):
    return [x for x in enumeration if (x.value & mask) == x.value]
def get_enumerations_from_bit_mask ( enumeration , mask ) : return [ x for x in enumeration if ( x . value & mask ) == x . value ]
A utility function that creates a list of enumeration values from a bit
    mask for a specific mask enumeration class.

    Args:
        enumeration (class): The enumeration class from which to draw
            enumeration values.
        mask (int): The bit mask from which to identify enumeration values.

    Returns:
        list: A list of enumeration values corresponding to the bit mask.
A utility function that creates a list of enumeration values from a bit mask for a specific mask enumeration class .