# HG changeset patch # User paulb@jeremy # Date 1155075882 -7200 # Node ID 70e6d94138acc39e43bffc4512d83fa8ccf6b960 # Parent 4831fbcba5bf47c054e1dd89550865acab0be4f6 Added the original node to function-originating subprograms. diff -r 4831fbcba5bf -r 70e6d94138ac simplify.py --- a/simplify.py Wed Aug 09 00:24:01 2006 +0200 +++ b/simplify.py Wed Aug 09 00:24:42 2006 +0200 @@ -750,7 +750,7 @@ # Make a subprogram for the function and record it outside the main # tree. - subprogram = Subprogram(name=function.name, acquire_locals=0, returns_value=1, star=None, dstar=None) + subprogram = Subprogram(function, name=function.name, acquire_locals=0, returns_value=1, star=None, dstar=None) self.current_subprograms.append(subprogram) subprogram.code = self.dispatch(function.code) + [Return()] self.current_subprograms.pop()