Skip to content

Commit

Permalink
Ensure result from apply block is utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitric committed Oct 4, 2012
1 parent 3258726 commit 5339614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/template.py
Expand Up @@ -479,7 +479,7 @@ def generate(self, writer):
writer.write_line("_append = _buffer.append", self.line)
self.body.generate(writer)
writer.write_line("return _utf8('').join(_buffer)", self.line)
writer.write_line("_append(%s(%s()))" % (
writer.write_line("_append(_utf8(%s(%s())))" % (
self.method, method_name), self.line)


Expand Down

0 comments on commit 5339614

Please sign in to comment.