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.
from jinja2._compat import imap, string_types, text_type, iteritems
-_word_re = re.compile(r'\w+(?u)')
-_word_beginning_split_re = re.compile(r'([-\s\(\{\[\<]+)(?u)')
+_word_re = re.compile(r'\w+', re.UNICODE)
+_word_beginning_split_re = re.compile(r'([-\s\(\{\[\<]+)', re.UNICODE)
def contextfilter(f):