#NEWLINE# def _do_on_event( self , fd , events ) : #NEWLINE# #INDENT# if ( self not in self . handlers ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for ( event , ident ) in self . EVENT_MAPPING . items ( ) : #NEWLINE# #INDENT# if ( events & ident ) : #NEWLINE# #INDENT# for handler in self . handlers [ fd ] [ event ] : #NEWLINE# #INDENT# handler ( fd )