From: Georg Brandl Date: Sat, 23 Feb 2008 21:59:11 +0000 (+0000) Subject: #2101: fix removeAttribute docs. X-Git-Tag: v2.6a1~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d009926adb7d9079fff2263d37bf3943c373c7b;p=thirdparty%2FPython%2Fcpython.git #2101: fix removeAttribute docs. --- diff --git a/Doc/library/xml.dom.rst b/Doc/library/xml.dom.rst index 1fbca033453a..4bdb41ed5e83 100644 --- a/Doc/library/xml.dom.rst +++ b/Doc/library/xml.dom.rst @@ -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)