#NEWLINE# def handle_write( self ) : #NEWLINE# #INDENT# if ( not msg_queue . empty ( ) ) : #NEWLINE# #INDENT# msg = msg_queue . get ( ) #NEWLINE# print ( 'Sending: ' , msg ) #NEWLINE# self . send ( msg )