# HG changeset patch # User Sylvain <syt@logilab.fr> # Date 1208509361 -7200 # Fri Apr 18 11:02:41 2008 +0200 # Node ID 5c8280470677ef4e3d03d0ce8fb91757b722b9b1 # Parent 57e4a66b48ae44f41b2727cebf764b4313b472aa fix union.root diff --git a/stmts.py b/stmts.py --- a/stmts.py +++ b/stmts.py @@ -247,7 +247,7 @@ """return the root node of the tree""" if self.parent is None: return self - return self.parent + return self.parent.root # access to select statements property, which in certain condition # should have homogeneous values (don't use this in other cases)