#NEWLINE# def __init__( self , objects ) : #NEWLINE# #INDENT# BasePoller . __init__ ( self , objects ) #NEWLINE# self . kqueue = select . kqueue ( ) #NEWLINE# self . events = [ ] #NEWLINE# self . fd_to_object = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( _ , obj ) in self : #NEWLINE# #INDENT# r_event = select . kevent ( obj . fileno ( ) , filter = select . KQ_FILTER_READ , flags = ( select . KQ_EV_ADD | select . KQ_EV_ENABLE ) ) #NEWLINE# self . events . append ( r_event ) #NEWLINE# w_event = select . kevent ( obj . fileno ( ) , filter = select . KQ_FILTER_WRITE , flags = ( select . KQ_EV_ADD | select . KQ_EV_ENABLE ) ) #NEWLINE# self . events . append ( w_event ) #NEWLINE# self . fd_to_object [ obj . fileno ( ) ] = obj