#NEWLINE# def run_for_multiple( self , timeout ) : #NEWLINE# #INDENT# while timeout . alive : #NEWLINE# #INDENT# self . notify ( ) #NEWLINE# try : #NEWLINE# #INDENT# ready = self . wait ( timeout ) #NEWLINE# #UNINDENT# except StopWaiting : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( ready is not None ) : #NEWLINE# #INDENT# for listener in ready : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . accept ( listener ) #NEWLINE# #UNINDENT# except EnvironmentError as e : #NEWLINE# #INDENT# if ( e . errno not in ( errno . EAGAIN , errno . ECONNABORTED , errno . EWOULDBLOCK ) ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# if ( not self . is_parent_alive ( ) ) : #NEWLINE# #INDENT# return