From 7d009926adb7d9079fff2263d37bf3943c373c7b Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 23 Feb 2008 21:59:11 +0000 Subject: [PATCH] #2101: fix removeAttribute docs. --- Doc/library/xml.dom.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/xml.dom.rst b/Doc/library/xml.dom.rst index 1fbca03345..4bdb41ed5e 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) -- 2.40.0