Message92563
| Author |
loewis |
| Recipients |
loewis |
| Date |
2009年09月13日.08:50:38 |
| SpamBayes Score |
3.2315127e-06 |
| Marked as misclassified |
No |
| Message-id |
<1252831841.16.0.893335369907.issue6899@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| 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 |
|