From: Paul Prescod Date: Fri, 13 Oct 2000 20:11:42 +0000 (+0000) Subject: Clear siblings, now that they are being set. X-Git-Tag: v2.0~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4221ff0ee1c6af843e11f8bb143850102b64e0c7;p=thirdparty%2FPython%2Fcpython.git Clear siblings, now that they are being set. --- diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index 6dc3a524301b..00bd4ca0831c 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -136,6 +136,8 @@ class Node: self.childNodes[-1].unlink() del self.childNodes[-1] # probably not most efficient! self.childNodes = None + self.previousSibling = None + self.nextSibling = None if self.attributes: for attr in self._attrs.values(): self.removeAttributeNode(attr)