Kaydet (Commit) daaeb841 authored tarafından Claude Paroz's avatar Claude Paroz

Fixed #22773 -- Forced templatize() to return unicode

üst 1fe941ad
...@@ -530,7 +530,7 @@ def templatize(src, origin=None): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment