#NEWLINE# def _autoclose( self ) : #NEWLINE# #INDENT# newpool = deque ( ) #NEWLINE# try : #NEWLINE# #INDENT# while True : #NEWLINE# #INDENT# client = self . __pool . popleft ( ) #NEWLINE# if client . is_connected ( ) : #NEWLINE# #INDENT# if self . _is_expired_client ( client ) : #NEWLINE# #INDENT# client . disconnect ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# newpool . append ( self ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# except IndexError : #NEWLINE# #INDENT# self . __pool = newpool