

def buildAttributes(self, node, attrs, already_processed):
    value = find_attr_value_('tls_used', node)
    if (value is not None):
        if (value in ('true', '1')):
            self.tls_used = True
        elif (value in ('false', '0')):
            self.tls_used = False
        else:
            raise_parse_error(node, 'Bad boolean attribute')
    super(NetworkConnectionObjectType, self).buildAttributes(node, attrs, already_processed)

dataset/ETHPy150Open CybOXProject/python-cybox/cybox/bindings/network_connection_object.py NetworkConnectionObjectType.buildAttributes/original