def _autoclose(self):
        newpool = deque()
        try:
            while True:
                client = self.__pool.popleft()
                if client.is_connected():
                    if self._is_expired_client(client):
                        client.disconnect()
                    else:
                        newpool.append(client)
        except __HOLE__:
            self.__pool = newpool
dataset/ETHPy150Open thefab/tornadis/tornadis/pool.py/ClientPool._autoclose