1.1 --- a/simplify/fixinstances.py Sat Jul 28 01:56:30 2007 +0200
1.2 +++ b/simplify/fixinstances.py Sat Jul 28 01:58:06 2007 +0200
1.3 @@ -72,7 +72,7 @@
1.4 # recursion issues) and a list of current namespaces (used to recall
1.5 # namespaces upon invoking internal subprograms).
1.6
1.7 - self.subprograms = []
1.8 + self.subprograms = set()
1.9 self.current_subprograms = []
1.10
1.11 self.module = module
1.12 @@ -87,7 +87,7 @@
1.13
1.14 if not getattr(subprogram, "internal", 0):
1.15 for specialised in subprogram.active():
1.16 - self.subprograms.append(self.process_node(specialised))
1.17 + self.subprograms.add(self.process_node(specialised))
1.18
1.19 def process_structures(self, module):
1.20
1.21 @@ -250,7 +250,7 @@
1.22 subprogram = self.process_node(invoke.ref)
1.23
1.24 if subprogram is not None:
1.25 - self.subprograms.append(subprogram)
1.26 + self.subprograms.add(subprogram)
1.27 return invoke
1.28
1.29 # Convenience functions.