From: Andreas Lindhé <7773090+lindhe@users.noreply.github.com> Date: Mon, 12 Aug 2024 08:54:47 +0000 (+0200) Subject: fix list comprehension example X-Git-Tag: 3.1.5~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2017%2Fhead;p=thirdparty%2Fjinja.git fix list comprehension example --- diff --git a/src/jinja2/filters.py b/src/jinja2/filters.py index 14208770..4c949cbd 100644 --- a/src/jinja2/filters.py +++ b/src/jinja2/filters.py @@ -1629,8 +1629,8 @@ def sync_do_selectattr( .. code-block:: python - (u for user in users if user.is_active) - (u for user in users if test_none(user.email)) + (user for user in users if user.is_active) + (user for user in users if test_none(user.email)) .. versionadded:: 2.7 """ @@ -1667,8 +1667,8 @@ def sync_do_rejectattr( .. code-block:: python - (u for user in users if not user.is_active) - (u for user in users if not test_none(user.email)) + (user for user in users if not user.is_active) + (user for user in users if not test_none(user.email)) .. versionadded:: 2.7 """