There was an error while loading. Please reload this page.
1 parent afb9df6 commit 94d5d6eCopy full SHA for 94d5d6e
src/prompt_toolkit/output/flush_stdout.py
@@ -27,7 +27,6 @@ def flush_stdout(stdout: TextIO, data: str) -> None:
27
# UnicodeEncodeError crashes. E.g. u'\xb7' does not appear in 'ascii'.)
28
# My Arch Linux installation of july 2015 reported 'ANSI_X3.4-1968'
29
# for sys.stdout.encoding in xterm.
30
- out: IO[bytes]
31
if has_binary_io:
32
stdout.buffer.write(data.encode(stdout.encoding or "utf-8", "replace"))
33
else:
0 commit comments