1.1 --- a/micropython/report.py Wed Mar 23 00:58:57 2011 +0100
1.2 +++ b/micropython/report.py Wed Mar 23 01:40:27 2011 +0100
1.3 @@ -826,7 +826,8 @@
1.4 self._span_end()
1.5
1.6 def visitAssAttr(self, node):
1.7 - target_names = self.possible_accessor_types(node)
1.8 + target_names = ["%s%s" % (is_static and "class " or "", target_name)
1.9 + for target_name, is_static in self.possible_accessor_types(node)]
1.10 self._span_start("assattr")
1.11 self._accessor_start(target_names)
1.12 self.dispatch(node.expr)
1.13 @@ -911,7 +912,8 @@
1.14 self._visitBinary(node, "floordiv", "//")
1.15
1.16 def visitGetattr(self, node):
1.17 - target_names = self.possible_accessor_types(node)
1.18 + target_names = ["%s%s" % (is_static and "class " or "", target_name)
1.19 + for target_name, is_static in self.possible_accessor_types(node)]
1.20 self._span_start("getattr")
1.21 self._accessor_start(target_names)
1.22 self.dispatch(node.expr)