mirror of https://github.com/django/django.git
Fixed #22773 -- Forced templatize() to return unicode
This commit is contained in:
parent
1fe941adb0
commit
daaeb84158
|
@ -530,7 +530,7 @@ def templatize(src, origin=None):
|
||||||
from django.template import (Lexer, TOKEN_TEXT, TOKEN_VAR, TOKEN_BLOCK,
|
from django.template import (Lexer, TOKEN_TEXT, TOKEN_VAR, TOKEN_BLOCK,
|
||||||
TOKEN_COMMENT, TRANSLATOR_COMMENT_MARK)
|
TOKEN_COMMENT, TRANSLATOR_COMMENT_MARK)
|
||||||
src = force_text(src, settings.FILE_CHARSET)
|
src = force_text(src, settings.FILE_CHARSET)
|
||||||
out = StringIO()
|
out = StringIO('')
|
||||||
message_context = None
|
message_context = None
|
||||||
intrans = False
|
intrans = False
|
||||||
inplural = False
|
inplural = False
|
||||||
|
|
Loading…
Reference in New Issue