Skip to content
Myr

Make sure filtering returns a list for template listing.

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

authored by Armin Ronacher · committed by Armin Ronacher · parent cb6fab7 · 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/environment.py+1 added-1 removed
715 unmodified lines
716 'can be passed, but not both')717 filter_func = lambda x: '.' in x and \718 x.rsplit('.', 1)[1] in extensions719 if filter_func is not None:720 x = ifilter(filter_func, x)720 x = list(ifilter(filter_func, x))721 return x722723 def handle_exception(self, exc_info=None, rendered=False, source_hint=None):724 """Exception handling helper. This is used internally to either raise
479 unmodified lines