Skip to content
Myr

Sort filters, remove dupes

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

Fix #454

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parent 45fe80e · Browse files · 1 file+34 added−36 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+34 added−36 removed

  • other:+34 added−36 removed

1 file+34 added−36 removed

modified:jinja2/filters.py+34 added-36 removed
939 unmodified lines
940 yield item941942943FILTERS = {944 'abs': abs,945 'attr': do_attr,945 'replace': do_replace,946 'upper': do_upper,947 'lower': do_lower,948 'escape': escape,949 'e': escape,950 'forceescape': do_forceescape,946 'batch': do_batch,947 'capitalize': do_capitalize,952 'title': do_title,953 'default': do_default,954 'd': do_default,955 'join': do_join,948 'center': do_center,949 'count': len,950 'd': do_default,951 'default': do_default,952 'dictsort': do_dictsort,958 'sort': do_sort,959 'length': len,960 'reverse': do_reverse,961 'center': do_center,962 'indent': do_indent,963 'title': do_title,964 'capitalize': do_capitalize,953 'e': escape,954 'escape': escape,955 'filesizeformat': do_filesizeformat,956 'first': do_first,957 'float': do_float,958 'forceescape': do_forceescape,959 'format': do_format,960 'groupby': do_groupby,961 'indent': do_indent,962 'int': do_int,963 'join': do_join,964 'last': do_last,965 'length': len,966 'list': do_list,967 'lower': do_lower,968 'map': do_map,969 'pprint': do_pprint,970 'random': do_random,971 'reject': do_reject,972 'rejectattr': do_rejectattr,971 'filesizeformat': do_filesizeformat,972 'pprint': do_pprint,973 'truncate': do_truncate,974 'wordwrap': do_wordwrap,975 'wordcount': do_wordcount,976 'int': do_int,977 'float': do_float,978 'string': soft_unicode,979 'list': do_list,980 'urlize': do_urlize,981 'format': do_format,982 'trim': do_trim,983 'striptags': do_striptags,973 'replace': do_replace,974 'reverse': do_reverse,975 'round': do_round,976 'safe': do_mark_safe,977 'select': do_select,978 'selectattr': do_selectattr,979 'slice': do_slice,987 'batch': do_batch,980 'sort': do_sort,981 'string': soft_unicode,982 'striptags': do_striptags,983 'sum': do_sum,989 'abs': abs,990 'round': do_round,991 'groupby': do_groupby,992 'safe': do_mark_safe,993 'xmlattr': do_xmlattr,984 'title': do_title,985 'trim': do_trim,986 'truncate': do_truncate,987 'upper': do_upper,988 'urlencode': do_urlencode989 'urlize': do_urlize,990 'wordcount': do_wordcount,991 'wordwrap': do_wordwrap,992 'xmlattr': do_xmlattr,993}