summaryrefslogtreecommitdiff
path: root/urwid
diff options
context:
space:
mode:
authorMichael Keirnan <michael@keirnan.com>2016-02-05 23:23:40 -0500
committerMichael Keirnan <michael@keirnan.com>2016-02-05 23:23:40 -0500
commit88f7e520b3e0a1fa2f820ff02a0b679e54457da0 (patch)
tree912f4005075d1726ebdd117dea6f75aa2cbe771e /urwid
parent35cfcf387fe4c78d3f0cc7338f882f61a8d2254f (diff)
downloadurwid-88f7e520b3e0a1fa2f820ff02a0b679e54457da0.tar.gz
fix #172 - html_fragment errors on Python 3.4
Diffstat (limited to 'urwid')
-rwxr-xr-xurwid/html_fragment.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/urwid/html_fragment.py b/urwid/html_fragment.py
index 380d1d3..3db1fd9 100755
--- a/urwid/html_fragment.py
+++ b/urwid/html_fragment.py
@@ -96,6 +96,8 @@ class HtmlGenerator(BaseScreen):
col = 0
for a, cs, run in row:
+ if not str is bytes:
+ run = run.decode()
run = run.translate(_trans_table)
if isinstance(a, AttrSpec):
aspec = a