def visit_generic_map(self, m, prev_m=None):
    self._dump('<table border="0">')

    def dump_pair(m, k, is_added=None):
        self._dump(('<tr><td>%s</td><td align="left">%s</td><td align="left">%s</td></tr>' % (self._diff_plus_minus(is_added), k, m.generic_map[k])))
    if (prev_m is not None):
        (removed, added) = m.diff(prev_m)
        for k in removed:
            dump_pair(prev_m, k, False)
        for k in added:
            dump_pair(m, k, True)
    else:
        for k in m.generic_map:
            dump_pair(m, k, None)
    self._dump('</table>')
def visit_generic_map(self, m, prev_m=None):
    self._dump('<table border="0">')

    def dump_pair(m, k, is_added=None):
        self._dump(('<tr><td>%s</td><td align="left">%s</td><td align="left">%s</td></tr>' % (self._diff_plus_minus(is_added), k, m.generic_map[k])))
    if (prev_m is not None):
        (removed, added) = m.diff(prev_m)
        for k in removed:
            dump_pair(prev_m, k, False)
        for k in added:
            dump_pair(m, k, True)
    else:
        for k in m.generic_map:
            dump_pair(m, k, None)
    self._dump('</table>')