'Extract any table-level metadata, e.g. keywords, comments, column metadata, from
the table ``lines`` and update the OrderedDict ``meta`` in place.  This base
method extracts comment lines and stores them in ``meta`` for output.'

def update_meta(self, lines, meta):

    if self.comment:
        re_comment = re.compile(self.comment)
        comment_lines = [x for x in lines if re_comment.match(x)]
    else:
        comment_lines = []
    comment_lines = [re.sub(('^' + self.comment), '', x).strip() for x in comment_lines]
    if comment_lines:
        meta.setdefault('table', {})['comments'] = comment_lines
