Skip to content
Myr

Merge pull request #402 from quodlibetor/attr-filter-docstring-cleanup

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

Change attr filter example to match description

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents e2ec123, 9443b3c · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja2/filters.py+1 added-1 removed
776 unmodified lines
777778@environmentfilter779def do_attr(environment, obj, name):780 """Get an attribute of an object. ``foo|attr("bar")`` works like781 ``foo["bar"]`` just that always an attribute is returned and items are not781 ``foo.bar`` just that always an attribute is returned and items are not782 looked up.783784 See :ref:`Notes on subscriptions <notes-on-subscriptions>` for more details.785 """
209 unmodified lines