Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.7.x] Fixed #22773 -- Forced templatize() to return unicode

Backport of daaeb84 from master.
  • Loading branch information...
commit b236a5581898aca7bff082a6d642bf457278c658 1 parent 7d38895
@claudep claudep authored
View
2  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
View
0  tests/i18n/commands/templates/empty.html
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.