# HG changeset patch # User Paul Boddie # Date 1353014864 -3600 # Node ID 48af9f84cdd3f278fc12b837a3fec214807161d7 # Parent e302d65952f8b0c4d98ffa2115e266889f84f4b6 Made the list of unknown target nodes global to a program instead of being overwritten for each module. diff -r e302d65952f8 -r 48af9f84cdd3 micropython/__init__.py --- a/micropython/__init__.py Thu Nov 15 21:27:18 2012 +0100 +++ b/micropython/__init__.py Thu Nov 15 22:27:44 2012 +0100 @@ -86,6 +86,10 @@ self.code = None self.code_location = None + # A record of nodes for which no attribute target could be found. + + self.unknown_target_nodes = [] + def get_importer(self): return self.importer diff -r e302d65952f8 -r 48af9f84cdd3 micropython/report.py --- a/micropython/report.py Thu Nov 15 21:27:18 2012 +0100 +++ b/micropython/report.py Thu Nov 15 22:27:44 2012 +0100 @@ -632,7 +632,6 @@ self.visitor = self self.module = module self.program = program - self.program.unknown_target_nodes = [] self.units = [] def get_unit(self):