Message92563
In Base.replace, the method checks that self.parent is not None -
however, it (unfortunately), breaks this very property itself if self is
new, or self in new.
In particular, some fixers return node from transform if they don't want
to do anything. In that case, self.parent gets set to None, even though
new (which is self) is still connected to the tree.
This patch
a) short-cuts the case that self is new
b) arranges to set parent of the new nodes only after clearing parent of
self |
|
Date |
User |
Action |
Args |
2009-09-13 08:50:41 | loewis | set | recipients:
+ loewis |
2009-09-13 08:50:41 | loewis | set | messageid: <1252831841.16.0.893335369907.issue6899@psf.upfronthosting.co.za> |
2009-09-13 08:50:39 | loewis | link | issue6899 messages |
2009-09-13 08:50:38 | loewis | create | |
|