def get_cols(self, lines):
re_name_def = re.compile(r'<STR_LIT>')<EOL>self.names = []<EOL>for line in lines:<EOL><INDENT>if not line:  <EOL><INDENT>continue<EOL><DEDENT>if not line.startswith('<STR_LIT:%>'):  <EOL><INDENT>break<EOL><DEDENT>match = re_name_def.search(line)<EOL>if match:<EOL><INDENT>self.names.append(match.group('<STR_LIT>'))<EOL><DEDENT><DEDENT>if not self.names:<EOL><INDENT>raise core.InconsistentTableError(<EOL>'<STR_LIT>')<EOL><DEDENT>self.cols = []  <EOL>for name in self.names:<EOL><INDENT>col = core.Column(name=name)<EOL>self.cols.append(col)<EOL><DEDENT>
Initialize Column objects from a multi-line ASCII header

        Parameters
        ----------
        lines : `list`
            List of table lines