#NEWLINE# def removeWriter( self , writer ) : #NEWLINE# #INDENT# '\n        Implement L{IReactorFDSet.removeWriter}.\n        ' #NEWLINE# wasLost = False #NEWLINE# try : #NEWLINE# #INDENT# fd = writer . fileno ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# fd = ( - 1 ) #NEWLINE# #UNINDENT# if ( fd == ( - 1 ) ) : #NEWLINE# #INDENT# for ( fd , fdes ) in self . _selectables . items ( ) : #NEWLINE# #INDENT# if ( writer is fdes ) : #NEWLINE# #INDENT# wasLost = True #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# if ( fd in self . _writes ) : #NEWLINE# #INDENT# self . _writes . remove ( fd ) #NEWLINE# if ( fd not in self . _reads ) : #NEWLINE# #INDENT# del self . _selectables [ fd ] #NEWLINE# #UNINDENT# if ( not wasLost ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . _updateRegistration ( fd , KQ_FILTER_WRITE , KQ_EV_DELETE ) #NEWLINE# #UNINDENT# except OSError : #NEWLINE# #INDENT# pass