Browse files

Use mako's render_unicode method.

This avoids tw2 playing a role in unnecessarily coercing strings to from
unicode to bytestrings and back again.  We can just keep things unicode
until the very last moment.
  • Loading branch information...
ralphbean committed Oct 16, 2015
1 parent d6fa920 commit ecc33fc211b904c5aa0c88647245d37fe8cd7338
Showing with 1 addition and 1 deletion.
  1. +1 −1 tw2/core/
@@ -146,7 +146,7 @@ def get_render_callable(engine_name, displays_on, src, filename=None, inline=Fal
tmpl = mako.template.Template(**args)
return lambda kwargs: Markup(tmpl.render(**kwargs))
return lambda kwargs: Markup(tmpl.render_unicode(**kwargs))
elif engine_name in ('genshi', 'genshi_abs'):
import genshi.template

0 comments on commit ecc33fc

Please sign in to comment.