]> git.ipfire.org Git - thirdparty/jinja.git/commit
Uses re.compile flags argument, not inline flags (#628)
authorjfinkels <jfinkels@users.noreply.github.com>
Sun, 25 Dec 2016 23:10:33 +0000 (18:10 -0500)
committerDavid Lord <davidism@gmail.com>
Sun, 25 Dec 2016 23:10:33 +0000 (15:10 -0800)
commitb42f53540469b54947b7de05143c9518b6d23c66
treedbcb9061cb2f65b723e5ca243d597914de3281e5
parent363ab44a48cb0c5b40d0b88b4fb36019333c2071
Uses re.compile flags argument, not inline flags (#628)

This commit replaces the use of terminal inline flags in a regular
expression in `re.compile`,

    re.compile(r'\w+(?u)')

with arguments to the `re.compile` function itself,

    re.compile(r'\w+', re.UNICODE)

because the former is deprecated as of Python 3.6.
jinja2/filters.py