Skip to content
Myr

Added note for async from filter calls

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 6445ec0 · Browse files · 1 file+5 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:jinja2/environment.py+5 added
425 unmodified lines
426 def call_filter(self, name, value, args=None, kwargs=None,427 context=None, eval_ctx=None):428 """Invokes a filter on a value the same way the compiler does it.429430 Note that on Python 3 this might return a coroutine in case the431 filter is running from an environment in async mode and the filter432 supports async execution. It's your responsibility to await this433 if needed.434435 .. versionadded:: 2.7436 """437 func = self.filters.get(name)438 if func is None:
827 unmodified lines