summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-06-06 08:40:04 +0200
committerClaude Paroz <claude@2xlibre.net>2014-06-06 08:43:24 +0200
commitb236a5581898aca7bff082a6d642bf457278c658 (patch)
treef0debd48104dbc9c7ce5253fd3c532fb9ca67058 /django/utils
parent7d388956cecf02fa84939ab913b594cd96462302 (diff)
[1.7.x] Fixed #22773 -- Forced templatize() to return unicode
Backport of daaeb84158 from master.
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/translation/trans_real.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py
index 051edb8b23..0fe5ebd7ae 100644
--- a/django/utils/translation/trans_real.py
+++ b/django/utils/translation/trans_real.py
@@ -544,7 +544,7 @@ def templatize(src, origin=None):
from django.template import (Lexer, TOKEN_TEXT, TOKEN_VAR, TOKEN_BLOCK,
TOKEN_COMMENT, TRANSLATOR_COMMENT_MARK)
src = force_text(src, settings.FILE_CHARSET)
- out = StringIO()
+ out = StringIO('')
message_context = None
intrans = False
inplural = False