summaryrefslogtreecommitdiffstats
path: root/Lib/xml/dom
diff options
context:
space:
mode:
authorPaul Prescod <prescod@prescod.net>2000-10-13 20:11:42 (GMT)
committerPaul Prescod <prescod@prescod.net>2000-10-13 20:11:42 (GMT)
commit4221ff0ee1c6af843e11f8bb143850102b64e0c7 (patch)
tree7ca94905bb9ba2cd6813b5277a648e90e0e0bae8 /Lib/xml/dom
parentd5fd45ffa587dc2f49f94350233f4ba1427a6684 (diff)
downloadcpython-4221ff0ee1c6af843e11f8bb143850102b64e0c7.zip
cpython-4221ff0ee1c6af843e11f8bb143850102b64e0c7.tar.gz
cpython-4221ff0ee1c6af843e11f8bb143850102b64e0c7.tar.bz2
Clear siblings, now that they are being set.
Diffstat (limited to 'Lib/xml/dom')
-rw-r--r--Lib/xml/dom/minidom.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py
index 6dc3a52..00bd4ca 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)