'Add a new class to the "classes" attribute.'

def set_class(self, name):

    warnings.warn("docutils.nodes.Element.set_class    deprecated;    append    to    Element['classes']    list    attribute    directly", DeprecationWarning, stacklevel=2)
    assert ('    ' not in name)
    self['classes'].append(name.lower())
