]> granicus.if.org Git - python/commitdiff
Clear siblings, now that they are being set.
authorPaul Prescod <prescod@prescod.net>
Fri, 13 Oct 2000 20:11:42 +0000 (20:11 +0000)
committerPaul Prescod <prescod@prescod.net>
Fri, 13 Oct 2000 20:11:42 +0000 (20:11 +0000)
Lib/xml/dom/minidom.py

index 6dc3a524301bfc4887ea3e1040a8da49316f75e6..00bd4ca0831c6ef1eef84dcc1914d428f06cb7a1 100644 (file)
@@ -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)