2006-08-20 | paulb | raw files shortlog changelog graph | Moved visitor attribute initialisation. | |
simplify.py (file) |
1.1 --- a/simplify.py Sun Aug 20 01:11:17 2006 +0200 1.2 +++ b/simplify.py Sun Aug 20 22:25:47 2006 +0200 1.3 @@ -71,8 +71,11 @@ 1.4 self.current_subprograms = [] # Current subprograms being processed. 1.5 self.builtins = builtins # Whether the builtins are being processed. 1.6 1.7 + # For compiler package mechanisms. 1.8 + 1.9 + self.visitor = self 1.10 + 1.11 def process(self, node): 1.12 - self.visitor = self 1.13 return self.dispatch(node) 1.14 1.15 def dispatch_or_none(self, node, *args):