#NEWLINE# def tx( self , data ) : #NEWLINE# #INDENT# 'show transmitted data as hex dump' #NEWLINE# if offset . color : #NEWLINE# #INDENT# self . output . write ( self . tx_color ) #NEWLINE# #UNINDENT# for ( offset , row ) in hexdump ( data ) : #NEWLINE# #INDENT# self . write_line ( ( time . time ( ) - self . start_time ) , 'TX' , '{:04X}  ' . format ( offset ) , row )