summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjc1000 <42Echo6Alpha@gmail.com>2017-07-18 10:20:52 +1000
committerSjc1000 <42Echo6Alpha@gmail.com>2017-07-18 10:20:52 +1000
commitd32f8643b543c590ecd8bbd12433205f5ef35ee3 (patch)
tree8992e5061bda944ade2e9c4ecf6e2f07fc575102
parentb44ce386c981c7e7ff344db3973d3c69a8244a56 (diff)
downloadurwid-d32f8643b543c590ecd8bbd12433205f5ef35ee3.tar.gz
Fixed Terminal widget crashes with Python3
-rw-r--r--urwid/raw_display.py2
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: