def rofi2list(datas, sep):
    """
    Convert list formatted for rofi into python list object

    Parameters
    ----------
    datas : str
        a string with element separeted by line-breaks
    sep : str
        separator character

    Returns
    -------
    list
        elements of datas in a list

    Examples
    --------

    >>> rofi_list = "1\n2\n3\n4\n5\n6"
    >>> rofi2list(rofi_list)
    [1,2,3,4,5,6]
    """

    return datas.split(sep)