# Pastebin 2gubO3x8 @contextlib.contextmanager def reserve(self): # NOTE(morgan): We must use "acquire" if we want all the added context # manager logic that places the connection back into the pool at the # end of it's use. with self._pool.acquire() as conn: yield conn