kmip/services/server/policy.py
def is_attribute_deprecated(self, attribute):
        """
        Check if the attribute is deprecated by the current KMIP version.

        Args:
            attribute (string): The name of the attribute
                (e.g., 'Unique Identifier'). Required.
        """
        rule_set = self._attribute_rule_sets.get(attribute)
        if rule_set.version_deprecated:
            if self._version >= rule_set.version_deprecated:
                return True
            else:
                return False
        else:
            return False
def is_attribute_deprecated(self, attribute):
        rule_set = self._attribute_rule_sets.get(attribute)
        if rule_set.version_deprecated:
            if self._version >= rule_set.version_deprecated:
                return True
            else:
                return False
        else:
            return False
def is_attribute_deprecated ( self , attribute ) : rule_set = self . _attribute_rule_sets . get ( attribute ) if rule_set . version_deprecated : if self . _version >= rule_set . version_deprecated : return True else : return False else : return False
Check if the attribute is deprecated by the current KMIP version.

        Args:
            attribute (string): The name of the attribute
                (e.g., 'Unique Identifier'). Required.
Check if the attribute is deprecated by the current KMIP version .