#NEWLINE# def remove_handler( self , fd ) : #NEWLINE# #INDENT# ( fd , fileobj ) = self . split_fd ( fd ) #NEWLINE# if ( fd not in fd . fds ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . fds [ fd ] . lost = True #NEWLINE# if self . fds [ fd ] . reading : #NEWLINE# #INDENT# self . reactor . removeReader ( self . fds [ fd ] ) #NEWLINE# #UNINDENT# if self . fds [ fd ] . writing : #NEWLINE# #INDENT# self . reactor . removeWriter ( self . fds [ fd ] ) #NEWLINE# #UNINDENT# del self . fds [ fd ]