diff options
Diffstat (limited to 'mako/filters.py')
-rw-r--r-- | mako/filters.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mako/filters.py b/mako/filters.py index 369cbc3..ab7925f 100644 --- a/mako/filters.py +++ b/mako/filters.py @@ -64,7 +64,7 @@ class Decode(object): if isinstance(x, compat.text_type): return x elif not isinstance(x, compat.binary_type): - return compat.text_type(str(x), encoding=key) + return compat.text_type(x) else: return compat.text_type(x, encoding=key) return decode |