#NEWLINE# def receiveMessage( self , msg , sender ) : #NEWLINE# #INDENT# if ( type ( msg ) == type ( '' ) ) : #NEWLINE# #INDENT# self . send ( sender , ( 'MOO: ' + str ( msg ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( type ( msg ) == type ( 1 ) ) : #NEWLINE# #INDENT# bar = self . createActor ( 'thespian.test.testCreateActor.BarActor' ) #NEWLINE# self . send ( bar , ( sender , str ( bar ) ) )