#NEWLINE# @ staticmethod #NEWLINE# def get_logs( handler ) : #NEWLINE# #INDENT# raw_lines = [ l for l in handler . stream . getvalue ( ) . split ( '\n' ) if l ] #NEWLINE# lines = [ ] #NEWLINE# for line in raw_lines : #NEWLINE# #INDENT# if ( '\t' in line ) : #NEWLINE# #INDENT# fields = line . split ( '\t' ) #NEWLINE# lines . append ( fields ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# prevline = fields [ ( - 1 ) ] [ ( - 1 ) ] #NEWLINE# if prevline : #NEWLINE# #INDENT# prevline += '\n' #NEWLINE# #UNINDENT# prevline += line #NEWLINE# lines [ ( - 1 ) ] [ ( - 1 ) ] = prevline #NEWLINE# #UNINDENT# #UNINDENT# return lines