1.1 --- a/micropython/report.py Mon Oct 17 23:47:48 2011 +0200
1.2 +++ b/micropython/report.py Fri Oct 21 00:59:47 2011 +0200
1.3 @@ -410,9 +410,12 @@
1.4 for attr in attrs:
1.5 if attr.is_strict_constant():
1.6 value = attr.get_value()
1.7 - self.stream.write("<td class='summary-class-attr' id='%s'>" % self._attr(value.full_name()))
1.8 - self._object_name_ref(self.module, value, attr.name, classes="summary-ref")
1.9 - self.stream.write("</td>\n")
1.10 + if not isinstance(value, Const):
1.11 + self.stream.write("<td class='summary-class-attr' id='%s'>" % self._attr(value.full_name()))
1.12 + self._object_name_ref(self.module, value, attr.name, classes="summary-ref")
1.13 + self.stream.write("</td>\n")
1.14 + else:
1.15 + self.stream.write("<td class='summary-class-attr'>%s</td>\n" % self._text(attr.name))
1.16 else:
1.17 self.stream.write("<td class='summary-class-attr'>%s</td>\n" % self._text(attr.name))
1.18 else: