Mercurial > piecrust2
diff piecrust/data/debug.py @ 7:343d08ef5668
More PieCrust 3 fixes, and a couple of miscellaneous bug fixes.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 16 Aug 2014 15:07:22 -0700 |
parents | 474c9882decf |
children | 395eb38f2dfb |
line wrap: on
line diff
--- a/piecrust/data/debug.py Sat Aug 16 08:15:30 2014 -0700 +++ b/piecrust/data/debug.py Sat Aug 16 15:07:22 2014 -0700 @@ -175,9 +175,7 @@ self._write('<span style="%s">%4.2f</span>' % (CSS_VALUE, data)) return - if data_type in (str, str): - if data_type == str: - data = data.decode('utf8') + if data_type is str: if len(data) > DebugDataRenderer.MAX_VALUE_LENGTH: data = data[:DebugDataRenderer.MAX_VALUE_LENGTH - 5] data += '[...]'