mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Clear siblings, now that they are being set.
This commit is contained in:
parent
d5fd45ffa5
commit
4221ff0ee1
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue