def release(self, connection):
        # The real pool is referenced by the connection through an
        # internal weakref.  If the weakref is broken it means the
        # pool is already gone and we do not need to release the
        # connection.
        try:
            real_pool = connection.__creating_pool()
        except (AttributeError, __HOLE__):
            real_pool = None

        if real_pool is not None:
            real_pool.release(connection)
dataset/ETHPy150Open getsentry/rb/rb/clients.py/RoutingPool.release