diff options
| author | Ian Ward <ian@excess.org> | 2017-08-22 14:32:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-22 14:32:39 -0400 |
| commit | c29b072e1f6df12e237a1294e249943222879536 (patch) | |
| tree | fc2e28b755e421a87db15d24296408133288afc6 | |
| parent | 1a6772e426d0201920a1542a5d88bfbd289374f2 (diff) | |
| parent | d32f8643b543c590ecd8bbd12433205f5ef35ee3 (diff) | |
| download | urwid-c29b072e1f6df12e237a1294e249943222879536.tar.gz | |
Merge pull request #243 from Sjc1000/master
Fixed Terminal widget crashes with Python3
| -rw-r--r-- | urwid/raw_display.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urwid/raw_display.py b/urwid/raw_display.py index 132b4ff..f88d0b4 100644 --- a/urwid/raw_display.py +++ b/urwid/raw_display.py @@ -834,7 +834,7 @@ class Screen(BaseScreen, RealTerminal): try: for l in o: if isinstance(l, bytes) and PYTHON3: - l = l.decode('utf-8') + l = l.decode('utf-8', 'replace') self.write(l) self.flush() except IOError as e: |
