#NEWLINE# def read_handler( self ) : #NEWLINE# #INDENT# while 1 : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# rl = self . _poller . poll ( 0 ) #NEWLINE# #UNINDENT# except IOError as why : #NEWLINE# #INDENT# if ( why . errno == EINTR ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# readysocks = [ ] #NEWLINE# for ( fd , flags ) in rl : #NEWLINE# #INDENT# sock = self . smap . get ( fd ) #NEWLINE# if ( sock is not None ) : #NEWLINE# #INDENT# readysocks . append ( sock ) #NEWLINE# #UNINDENT# #UNINDENT# self . _pyrod . events ( readysocks ) #NEWLINE# self . update ( )