fix jinja SequenceExtension
Merge pull request #10379 from johnnoone/jinja-filter

fix jinja SequenceExtension