]> granicus.if.org Git - python/commitdiff
#2101: fix removeAttribute docs.
authorGeorg Brandl <georg@python.org>
Sat, 23 Feb 2008 21:59:11 +0000 (21:59 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 23 Feb 2008 21:59:11 +0000 (21:59 +0000)
Doc/library/xml.dom.rst

index 1fbca033453af0ba296687a1e9abed577fdc7866..4bdb41ed5e834f712cd6c5804478b8ba261116a9 100644 (file)
@@ -652,8 +652,8 @@ of that class.
 
 .. method:: Element.removeAttribute(name)
 
-   Remove an attribute by name.  No exception is raised if there is no matching
-   attribute.
+   Remove an attribute by name.  If there is no matching attribute, a
+   :exc:`NotFoundErr` is raised.
 
 
 .. method:: Element.removeAttributeNode(oldAttr)