def _get_client_from_pool_or_make_it(self):
        try:
            while True:
                client = self.__pool.popleft()
                if client.is_connected():
                    if self._is_expired_client(client):
                        client.disconnect()
                        continue
                    break
        except __HOLE__:
            client = self._make_client()
            return (True, client)
        return (False, client)
dataset/ETHPy150Open thefab/tornadis/tornadis/pool.py/ClientPool._get_client_from_pool_or_make_it