def split_lines(lines):
    """
    split a MagIC upload format file into lists.
    the lists are split by the '>>>' lines between file_types.
    """
    container = []
    new_list = []
    for line in lines:
        if '>>>' in line:
            container.append(new_list)
            new_list = []
        else:
            new_list.append(line)
    container.append(new_list)
    return container
def split_lines ( lines ) : container = [ ] new_list = [ ] for line in lines : if '>>>' in line : container . append ( new_list ) new_list = [ ] else : new_list . append ( line ) container . append ( new_list ) return container
split a MagIC upload format file into lists.
    the lists are split by the '>>>' lines between file_types.