#NEWLINE# def receiveMessage( self , msg , sender ) : #NEWLINE# #INDENT# if ( type ( msg ) == type ( '' ) ) : #NEWLINE# #INDENT# self . send ( sender , ( 'TGT %s got %s' % ( self . myAddress , msg ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( self , RoutedMsg ) : #NEWLINE# #INDENT# self . routeMessage ( msg , sender )