From: <fel...@us...> - 2005-04-21 16:17:10
|
Author: felixwiemann Date: 2005-04-21 18:17:00 +0200 (Thu, 21 Apr 2005) New Revision: 3234 Modified: trunk/docutils/docutils/nodes.py Log: removed reference to Element.attributes; let's access attributes consistently (and shorter) via Element.__getitem__ (David, if you disagree, please feel free to revert the change without prior discussion) Modified: trunk/docutils/docutils/nodes.py =================================================================== --- trunk/docutils/docutils/nodes.py 2005-04-21 15:16:10 UTC (rev 3233) +++ trunk/docutils/docutils/nodes.py 2005-04-21 16:17:00 UTC (rev 3234) @@ -599,8 +599,8 @@ def set_class(self, name): """Add a new class to the "classes" attribute.""" warnings.warn('docutils.nodes.Element.set_class deprecated; ' - "append to Element.attributes['classes'] list " - 'attribute directly', DeprecationWarning, stacklevel=2) + "append to Element['classes'] list attribute directly", + DeprecationWarning, stacklevel=2) assert ' ' not in name self['classes'].append(name.lower()) |