1.1 --- a/micropython/report.py Mon Nov 05 00:22:09 2012 +0100
1.2 +++ b/micropython/report.py Tue Nov 06 00:12:46 2012 +0100
1.3 @@ -28,6 +28,11 @@
1.4 import os
1.5 import textwrap
1.6
1.7 +try:
1.8 + set
1.9 +except NameError:
1.10 + from sets import Set as set
1.11 +
1.12 # Classes.
1.13
1.14 # HTML-related output production.
1.15 @@ -1450,7 +1455,7 @@
1.16 # Statistics gathering methods.
1.17
1.18 def possible_accessor_types(self, node, defining_users=1):
1.19 - possible_types = [tn for (tn, st) in ASTVisitor.possible_accessor_types(self, node, defining_users)]
1.20 + possible_types = set([tn for (tn, st) in ASTVisitor.possible_accessor_types(self, node, defining_users)])
1.21 if not possible_types:
1.22 self.program.unknown_target_nodes.append((self.units[-1], node))
1.23 return possible_types