#NEWLINE# def unregister( self , fileobj ) : #NEWLINE# #INDENT# key = super ( KqueueSelector , self ) . unregister ( fileobj ) #NEWLINE# if ( key . events & EVENT_READ ) : #NEWLINE# #INDENT# kev = select . kevent ( key . fd , select . KQ_FILTER_READ , select . KQ_EV_DELETE ) #NEWLINE# try : #NEWLINE# #INDENT# self . _kqueue . control ( [ kev ] , 0 , 0 ) #NEWLINE# #UNINDENT# except OSError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# if ( key . events & EVENT_WRITE ) : #NEWLINE# #INDENT# kev = select . kevent ( key . fd , select . KQ_FILTER_WRITE , select . KQ_EV_DELETE ) #NEWLINE# try : #NEWLINE# #INDENT# self . _kqueue . control ( [ kev ] , 0 , 0 ) #NEWLINE# #UNINDENT# except OSError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# return key