diff options
| author | Michael Keirnan <michael@keirnan.com> | 2016-02-05 23:23:40 -0500 |
|---|---|---|
| committer | Michael Keirnan <michael@keirnan.com> | 2016-02-05 23:23:40 -0500 |
| commit | 88f7e520b3e0a1fa2f820ff02a0b679e54457da0 (patch) | |
| tree | 912f4005075d1726ebdd117dea6f75aa2cbe771e /urwid | |
| parent | 35cfcf387fe4c78d3f0cc7338f882f61a8d2254f (diff) | |
| download | urwid-88f7e520b3e0a1fa2f820ff02a0b679e54457da0.tar.gz | |
fix #172 - html_fragment errors on Python 3.4
Diffstat (limited to 'urwid')
| -rwxr-xr-x | urwid/html_fragment.py | 2 |
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 |
