#NEWLINE# def _print_item_color( self , item ) : #NEWLINE# #INDENT# c = ( lambda string : self . _wrap ( string , 'call' ) ) #NEWLINE# k = ( lambda string : self . _wrap ( string , 'key' ) ) #NEWLINE# p = ( lambda string : self . _wrap ( string , 'param' ) ) #NEWLINE# if isinstance ( item , TraceGroup ) : #NEWLINE# #INDENT# return TracePrinter ( item ) . print_color ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( item , TraceFork ) : #NEWLINE# #INDENT# return ( ( ( ( ( c ( 'fork' ) + k ( '(' ) ) + p ( item . fork_name ) ) + k ( ') {\n' ) ) + TracePrinter ( item ) . print_color ( ) ) + k ( '\n}' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( item . entry_type == Actions . Run ) : #NEWLINE# #INDENT# return ( ( ( ( ( ( ( ( ( c ( ( 'sandbox' if item . sandboxing else 'run' ) ) + k ( '{\n host: ' ) ) + p ( item . host . slug ) ) + k ( ',\n sudo: ' ) ) + p ( str ( item . use_sudo ) ) ) + k ( ',\n command: ' ) ) + p ( item . command ) ) + k ( ',\n status_code: ' ) ) + p ( item . status_code ) ) + k ( '\n}' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( item . entry_type == Actions . Open ) : #NEWLINE# #INDENT# return ( ( ( ( ( ( ( ( ( ( ( c ( 'open' ) + k ( '{\n host: ' ) ) + p ( item . host . slug ) ) + k ( ',\n sudo: ' ) ) + p ( item . use_sudo ) ) + k ( ',\n mode: ' ) ) + p ( item . mode ) ) + k ( ',\n remote: ' ) ) + p ( item . remote_path ) ) + k ( ',\n succeeded: ' ) ) + p ( item . succeeded ) ) + k ( '\n}' ) )