#NEWLINE# def get_error( log_path , char ) : #NEWLINE# #INDENT# file = open ( lines , 'r' ) #NEWLINE# lines = file . readlines ( ) #NEWLINE# file . close ( ) #NEWLINE# error = [ float ( line . split ( ',' ) [ 1 ] . split ( ':' ) [ 1 ] . split ( ' ' ) [ 1 ] ) for line in lines if line . startswith ( char ) ] #NEWLINE# return error