MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / _include

Method _include

21-async/mojifinder/bottle.py:3388–3396  ·  view source on GitHub ↗
(self, _env, _name=None, **kwargs)

Source from the content-addressed store, hash-verified

3386 _env['_rebase'] = (_name, kwargs)
3387
3388 def _include(self, _env, _name=None, **kwargs):
3389 if _name is None:
3390 depr('Rebase function called without arguments.'
3391 ' You were probably looking for {{base}}?', True) #0.12
3392 env = _env.copy()
3393 env.update(kwargs)
3394 if _name not in self.cache:
3395 self.cache[_name] = self.__class__(name=_name, lookup=self.lookup)
3396 return self.cache[_name].execute(env['_stdout'], env)
3397
3398 def execute(self, _stdout, kwargs):
3399 env = self.defaults.copy()

Callers 1

executeMethod · 0.95

Calls 4

deprFunction · 0.85
executeMethod · 0.80
copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected