# HG changeset patch # User Sylvain Thenault <sylvain.thenault@logilab.fr> # Date 1223487059 -7200 # Wed Oct 08 19:30:59 2008 +0200 # Node ID a732de66276b68b71bdd1fb68bf28731c250ef47 # Parent 5675a55e32ea9b7c328a52dd537386b9add81c52 fix set_scope diff --git a/nodes.py b/nodes.py --- a/nodes.py +++ b/nodes.py @@ -953,7 +953,7 @@ if scopenode is self.stmt or self.stinfo['scope'] is None: self.stinfo['scope'] = scopenode elif not (self.stinfo['scope'] is self.stmt or scopenode is self.stinfo['scope']): - self.stinfo['scope'] = common_parent(self.stinfo['scope'], scopenode) + self.stinfo['scope'] = common_parent(self.stinfo['scope'], scopenode).scope def get_scope(self): return self.stinfo['scope']