#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# values = ( self . __process . get_command ( ) , self . __process . get_status ( ) , self . __formatted_time ( ) , self . __process . get_pid ( ) ) #NEWLINE# max_length = ( max ( map ( len , self ) ) + 12 ) #NEWLINE# title = ( ( '=' * max_length ) + '\n' ) #NEWLINE# title += ( ' [command] %s\n' % values [ 0 ] ) #NEWLINE# title += ( '  [status] %s\n' % values [ 1 ] ) #NEWLINE# title += ( '    [time] %s\n' % values [ 2 ] ) #NEWLINE# title += ( '     [pid] %s\n' % values [ 3 ] ) #NEWLINE# title += ( '=' * max_length ) #NEWLINE# return title