1067 def set_class(self, name):
1068 """Add a new class to the "classes" attribute."""
1069 warnings.warn('docutils.nodes.Element.set_class() is deprecated; '
1070 ' and will be removed in Docutils 0.21 or later.',
1071 "Append to Element['classes'] list attribute directly",
1072 DeprecationWarning, stacklevel=2)
1073 assert ' ' not in name
1074 self['classes'].append(name.lower())
PDB stacktrace:
The deprecated function code: