1.1 --- a/micropython/report.py Thu Mar 13 23:56:32 2014 +0100
1.2 +++ b/micropython/report.py Fri Mar 14 00:21:22 2014 +0100
1.3 @@ -1157,13 +1157,8 @@
1.4 def _visitAttr(self, node, label):
1.5 self.record_unknown_targets(node)
1.6
1.7 - attributes = node._value_deduced and [self.get_attribute_and_value(node._value_deduced)] or \
1.8 - node._attr_deduced and [self.get_attribute_and_value(node._attr_deduced)] or \
1.9 - node._attrs_deduced or \
1.10 - map(self.get_attribute_and_value, node._attrs_deduced_from_specific_usage or [])
1.11 -
1.12 - possible_types = self._attributes_to_names(attributes, True)
1.13 - attribute_names = self._attributes_to_names(attributes)
1.14 + possible_types = self._attributes_to_names(node._access_attrs, True)
1.15 + attribute_names = self._attributes_to_names(node._access_attrs)
1.16
1.17 wraps_getattr = self._has_descendant(node.expr, compiler.ast.Getattr)
1.18
1.19 @@ -1176,7 +1171,7 @@
1.20
1.21 self.stream.write(".")
1.22 self._attribute_start(node.attrname, attribute_names)
1.23 - self._span(node.attrname, "attrname" + ((not attributes or node._access_type == "impossible") and " no-attributes" or ""))
1.24 + self._span(node.attrname, "attrname" + ((not node._access_attrs or node._access_type == "impossible") and " no-attributes" or ""))
1.25 self._attribute_end(attribute_names)
1.26
1.27 if not wraps_getattr: