#NEWLINE# def on_event( self , event , data ) : #NEWLINE# #INDENT# check = self . expected . get ( event , None ) #NEWLINE# if ( check and check ( data , data ) ) : #NEWLINE# #INDENT# self . continue_with ( ( lambda : self . task . send ( ( event , data ) ) ) ) #NEWLINE# #UNINDENT# return EVENT_UNREGISTER