'Get the lines from the ``table`` input. The input table can be one of:
* File name
* String (newline separated) with all header and data lines (must have at least 2 lines)
* File-like object with read() method
* List of strings
Parameters
table : str, file_like, list
Can be either a file name, string (newline separated) with all header and data
lines (must have at least 2 lines), a file-like object with a ``read()`` method,
or a list of strings.
Returns
lines : list
List of lines'

def get_lines(self, table):

    try:
        if (hasattr(table, 'read') or (('\n' not in (table + '')) and ('\r' not in (table + '')))):
            with get_readable_fileobj(table, encoding=self.encoding) as fileobj:
                table = fileobj.read()
        lines = table.splitlines()
    except TypeError:
        try:
            table[0]
            table[0:1]
            iter(table)
            lines = table
        except TypeError:
            raise TypeError('Input    "table"    must    be    a    string    (filename    or    data)    or    an    iterable')
    return self.process_lines(lines)
