1.1 --- a/micropython/report.py Sun Jul 15 00:14:45 2012 +0200
1.2 +++ b/micropython/report.py Sat Oct 20 01:39:50 2012 +0200
1.3 @@ -684,13 +684,9 @@
1.4
1.5 # Use inspected details where possible.
1.6
1.7 - if hasattr(node, "unit"):
1.8 - cls = node.unit
1.9 - bases = cls.bases
1.10 - self.stream.write("<div class='class nowrap' id='%s'>\n" % cls.full_name())
1.11 - else:
1.12 - print >>sys.stderr, "Warning: class %s not recognised!" % node.name
1.13 - return
1.14 + cls = node.unit
1.15 + bases = cls.bases
1.16 + self.stream.write("<div class='class nowrap' id='%s'>\n" % cls.full_name())
1.17
1.18 # Write the declaration line.
1.19
1.20 @@ -787,12 +783,8 @@
1.21 self._docstring('"Function %s not generated."' % node.name)
1.22 return
1.23
1.24 - if hasattr(node, "unit"):
1.25 - fn = node.unit
1.26 - self.stream.write("<div class='function nowrap' id='%s'>\n" % fn.full_name())
1.27 - else:
1.28 - print >>sys.stderr, "Warning: function %s not recognised!" % node.name
1.29 - return
1.30 + fn = node.unit
1.31 + self.stream.write("<div class='function nowrap' id='%s'>\n" % fn.full_name())
1.32
1.33 # Write the declaration line.
1.34
1.35 @@ -1216,11 +1208,7 @@
1.36 self._span_end()
1.37
1.38 def visitLambda(self, node):
1.39 - if hasattr(node, "unit"):
1.40 - fn = node.unit
1.41 - else:
1.42 - print >>sys.stderr, "Warning: function %s not recognised!" % node.name
1.43 - return
1.44 + fn = node.unit
1.45
1.46 self._span_start("lambda")
1.47 self._keyword("lambda")