1.1 --- a/simplify/annotate.py Mon Jul 30 00:35:54 2007 +0200
1.2 +++ b/simplify/annotate.py Tue Jul 31 01:05:24 2007 +0200
1.3 @@ -461,7 +461,7 @@
1.4 # the target may be a class or object, and there may be many different
1.5 # related subprograms.
1.6
1.7 - invocations = []
1.8 + invocations = set()
1.9
1.10 # Visit each callable in turn, finding subprograms.
1.11
1.12 @@ -516,8 +516,7 @@
1.13 # If a subprogram is defined, invoke it.
1.14
1.15 self.invoke_subprogram(invoke, attribute)
1.16 - if attribute.type not in invocations:
1.17 - invocations.append(attribute.type)
1.18 + invocations.add(attribute.type)
1.19
1.20 elif not isinstance(attr.type, GeneralClass):
1.21 print "Invocation type is None for", accessor