Skip to content

Commit

Permalink
fix list comprehension example (#2017)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism authored Dec 18, 2024
2 parents 13c42b3 + 75f0fbf commit a12789e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/jinja2/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down Expand Up @@ -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
"""
Expand Down

0 comments on commit a12789e

Please sign in to comment.