From: Armin Ronacher Date: Wed, 28 Dec 2016 22:19:35 +0000 (+0100) Subject: Added note for async from filter calls X-Git-Tag: 2.9~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a25669db88b26da7fb263b1ab3dbeee992e5cc40;p=thirdparty%2Fjinja.git Added note for async from filter calls --- diff --git a/jinja2/environment.py b/jinja2/environment.py index 759ecb97..7aa9cef8 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -427,6 +427,11 @@ class Environment(object): context=None, eval_ctx=None): """Invokes a filter on a value the same way the compiler does it. + Note that on Python 3 this might return a coroutine in case the + filter is running from an environment in async mode and the filter + supports async execution. It's your responsibility to await this + if needed. + .. versionadded:: 2.7 """ func = self.filters.get(name)