Home
last modified time | relevance | path

Searched refs:resolve_or_missing (Results 1 – 4 of 4) sorted by relevance

/external/python/jinja/src/jinja2/
Druntime.py131 resolve_or_missing = _get_func(rv.resolve_or_missing)
132 default_resolve_or_missing = _get_func(Context.resolve_or_missing)
138 and resolve_or_missing is default_resolve_or_missing
143 and resolve_or_missing is default_resolve_or_missing
150 def resolve_or_missing(context, key, missing=missing): function
201 self.resolve_or_missing = MethodType(resolve_or_missing, self)
229 rv = resolve_or_missing(self, key)
231 rv = self.resolve_or_missing(key)
236 def resolve_or_missing(self, key): member in Context
245 return resolve_or_missing(self, key)
[all …]
/external/libchrome/third_party/jinja2/
Druntime.py110 resolve_or_missing = _get_func(rv.resolve_or_missing)
111 default_resolve_or_missing = _get_func(Context.resolve_or_missing)
116 resolve_or_missing is default_resolve_or_missing:
119 resolve_or_missing is default_resolve_or_missing:
125 def resolve_or_missing(context, key, missing=missing): function
173 self.resolve_or_missing = MethodType(resolve_or_missing, self)
201 rv = resolve_or_missing(self, key)
203 rv = self.resolve_or_missing(key)
208 def resolve_or_missing(self, key): member in Context
217 return resolve_or_missing(self, key)
[all …]
/external/python/jinja/tests/
Dtest_regression.py599 assert x.resolve_or_missing("foo") == 42
600 assert x.resolve_or_missing("bar") == 23
601 assert x.resolve_or_missing("baz") is missing
Dtest_api.py425 def resolve_or_missing(self, key): member in TestLowLevel.test_custom_context.CustomContext