Skip to content
Myr

fix list comprehension example (#2017)

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

authored by David Lord · committed by GitHub · parents 13c42b3, 75f0fbf · Browse files · 1 file+4 added−4 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+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:src/jinja2/filters.py+4 added-4 removed
1627 unmodified lines
1628 Similar to a generator comprehension such as:16291630 .. code-block:: python16311632 (u for user in users if user.is_active)1633 (u for user in users if test_none(user.email))1632 (user for user in users if user.is_active)1633 (user for user in users if test_none(user.email))16341635 .. versionadded:: 2.71636 """1637 return select_or_reject(context, value, args, kwargs, lambda x: x, True)
28 unmodified lines
1666 Similar to a generator comprehension such as:16671668 .. code-block:: python16691670 (u for user in users if not user.is_active)1671 (u for user in users if not test_none(user.email))1670 (user for user in users if not user.is_active)1671 (user for user in users if not test_none(user.email))16721673 .. versionadded:: 2.71674 """1675 return select_or_reject(context, value, args, kwargs, lambda x: not x, True)
191 unmodified lines