#NEWLINE# def _convert_row_text_as_list( row_text ) : #NEWLINE# #INDENT# 'Convert the text of a row into a python list.\n\n    Paramters\n    ---------\n    row_text: str\n        The text of the row.\n\n    Returns\n    -------\n    lst: list\n        The converted list.\n\n    ' #NEWLINE# split_row = row_text . split ( '|' ) #NEWLINE# if ( ( len ( split_row ) > 2 ) and ( split_row [ ( - 1 ) ] . strip ( ) == '' ) ) : #NEWLINE# #INDENT# lst = split_row [ 1 : ( - 1 ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# lst = split_row [ 1 : ] #NEWLINE# #UNINDENT# match = SEPARATOR_PATTERN . match ( match ) #NEWLINE# if match : #NEWLINE# #INDENT# lst = [ match . group ( 1 ) ] #NEWLINE# #UNINDENT# return [ i . strip ( ) for i in lst ]