# HG changeset patch # User Paul Boddie # Date 1319151587 -7200 # Node ID 90f4bcc889524fd9bb979c9daa29089a45c6af10 # Parent 014fe0e246a808187c07676fdb32dbdd20eea931 Fixed the summary presentation of attributes providing constants. diff -r 014fe0e246a8 -r 90f4bcc88952 micropython/report.py --- a/micropython/report.py Mon Oct 17 23:47:48 2011 +0200 +++ b/micropython/report.py Fri Oct 21 00:59:47 2011 +0200 @@ -410,9 +410,12 @@ for attr in attrs: if attr.is_strict_constant(): value = attr.get_value() - self.stream.write("" % self._attr(value.full_name())) - self._object_name_ref(self.module, value, attr.name, classes="summary-ref") - self.stream.write("\n") + if not isinstance(value, Const): + self.stream.write("" % self._attr(value.full_name())) + self._object_name_ref(self.module, value, attr.name, classes="summary-ref") + self.stream.write("\n") + else: + self.stream.write("%s\n" % self._text(attr.name)) else: self.stream.write("%s\n" % self._text(attr.name)) else: