Skip to content

Commit

Permalink
Removed type declaration of unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanslenders committed Dec 6, 2022
1 parent afb9df6 commit 94d5d6e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/prompt_toolkit/output/flush_stdout.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def flush_stdout(stdout: TextIO, data: str) -> None:
# UnicodeEncodeError crashes. E.g. u'\xb7' does not appear in 'ascii'.)
# My Arch Linux installation of july 2015 reported 'ANSI_X3.4-1968'
# for sys.stdout.encoding in xterm.
out: IO[bytes]
if has_binary_io:
stdout.buffer.write(data.encode(stdout.encoding or "utf-8", "replace"))
else:
Expand Down

0 comments on commit 94d5d6e

Please sign in to comment.