mirror of
https://github.com/python/cpython.git
synced 2025-12-11 03:20:01 +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()
|
self.childNodes[-1].unlink()
|
||||||
del self.childNodes[-1] # probably not most efficient!
|
del self.childNodes[-1] # probably not most efficient!
|
||||||
self.childNodes = None
|
self.childNodes = None
|
||||||
|
self.previousSibling = None
|
||||||
|
self.nextSibling = None
|
||||||
if self.attributes:
|
if self.attributes:
|
||||||
for attr in self._attrs.values():
|
for attr in self._attrs.values():
|
||||||
self.removeAttributeNode(attr)
|
self.removeAttributeNode(attr)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue