Commit 9ad30dc1 authored by Martin v. Löwis's avatar Martin v. Löwis

Allow str8 in .write().

parent 2c42be8e
......@@ -35,7 +35,8 @@ class OutputWindow(EditorWindow):
# Act as output file
def write(self, s, tags=(), mark="insert"):
assert isinstance(s, str), repr(s)
if isinstance(s, (bytes, str8)):
s = s.decode(IOBinding.encoding, "replace")
self.text.insert(mark, s, tags)
self.text.see(mark)
self.text.update()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment