#NEWLINE# def remove_handler( self , handler ) : #NEWLINE# #INDENT# if isinstance ( handler , IOHandler ) : #NEWLINE# #INDENT# self . _remove_io_handler ( handler ) #NEWLINE# #UNINDENT# if isinstance ( handler , EventHandler ) : #NEWLINE# #INDENT# self . event_dispatcher . remove_handler ( handler ) #NEWLINE# #UNINDENT# if isinstance ( handler , TimeoutHandler ) : #NEWLINE# #INDENT# self . _remove_timeout_handler ( handler )