1.1 --- a/annotate.py Mon Jul 24 22:33:47 2006 +0200
1.2 +++ b/annotate.py Mon Jul 24 22:34:30 2006 +0200
1.3 @@ -310,9 +310,14 @@
1.4 # NOTE: Now locate and invoke the subprogram.
1.5
1.6 for subprogram in expr:
1.7 - items = self.make_items(invoke, subprogram)
1.8 + if hasattr(invoke, "same_frame") and invoke.same_frame:
1.9 + namespace = self.namespace
1.10 + else:
1.11 + items = self.make_items(invoke, subprogram)
1.12 + namespace = self.make_namespace(items)
1.13 +
1.14 annotator = Annotator()
1.15 - annotator.process(subprogram, self.make_namespace(items), self.global_namespace)
1.16 + annotator.process(subprogram, namespace, self.global_namespace)
1.17
1.18 # NOTE: Annotate the node with invocation details.
1.19