def _get_lines_from_file(filename, lines=None):
    '\n    If lines is None read the lines from the file with the filename filename.\n\n    Args:\n        filename (str): file to read lines from\n        lines (list/ None): list of lines\n\n    Returns:\n        list: list of lines\n    '
    if (lines is None):
        with open(filename, 'r') as f:
            lines = f.readlines()
    return lines
If lines is None read the lines from the file with the filename filename.

Args:
    filename (str): file to read lines from
    lines (list/ None): list of lines

Returns:
    list: list of lines
def _get_lines_from_file(filename, lines=None):
    '\n    If lines is None read the lines from the file with the filename filename.\n\n    Args:\n        filename (str): file to read lines from\n        lines (list/ None): list of lines\n\n    Returns:\n        list: list of lines\n    '
    if (lines is None):
        with open(filename, 'r') as f:
            lines = f.readlines()
    return lines