def _prime(self, ip):
        """ Prepare a named resolver for a given injection point.

            Internal use only. See _resolve()
        """
        try:
            provider_resolver = self._resolvers[ip.name]
        except KeyError:
            err = InjectError("Could not resolve provider for injection point %r" % ip.name)
            if not ip.implicit:
                raise err
            def fail_if_injected():
                raise err
            return fail_if_injected

        provider = self.call_inject(provider_resolver, **ip.config)
        return self.wrap(provider)
dataset/ETHPy150Open bottlepy/bottle-inject/bottle_inject.py/Injector._prime/original