Update Mako-1.1.5

This commit is contained in:
JonnyWong16 2021-10-14 21:46:34 -07:00
parent 4eb0fea423
commit 668f6bfbb8
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
5 changed files with 28 additions and 12 deletions

View file

@ -201,7 +201,7 @@ class Lexer(object):
"""
if isinstance(text, compat.text_type):
m = self._coding_re.match(text)
encoding = m and m.group(1) or known_encoding or "ascii"
encoding = m and m.group(1) or known_encoding or "utf-8"
return encoding, text
if text.startswith(codecs.BOM_UTF8):
@ -222,7 +222,7 @@ class Lexer(object):
if m:
parsed_encoding = m.group(1)
else:
parsed_encoding = known_encoding or "ascii"
parsed_encoding = known_encoding or "utf-8"
if decode_raw:
try: