]> git.ipfire.org Git - thirdparty/jinja.git/commit
Fix blank iterables not parsing correctly
authorKevin Brown <kevin@kevin-brown.com>
Thu, 14 May 2020 15:43:05 +0000 (11:43 -0400)
committerKevin Brown <kevin@kevin-brown.com>
Thu, 14 May 2020 15:43:05 +0000 (11:43 -0400)
commit06bcc5f9ac14b9b42d36d5020107d78b5df08315
tree4758b2511def04a138a48eede4feaf3ba878328c
parent67e082fdf31da71760dddafb4d8a3ab5cca8321b
Fix blank iterables not parsing correctly

The AST returns `None` instead of an empty array of the value of an
empty iterable literal, so we need to special case when that happens
to get them to parse consistently.
src/jinja2/new_parser.py