Skip to content

Commit

Permalink
close implies flush, so no need to flush after every write
Browse files Browse the repository at this point in the history
  • Loading branch information
stefreak authored Sep 7, 2024
1 parent ce88a00 commit 1b3988a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/click/_termui_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ def _pipepager(generator: cabc.Iterable[str], cmd: str, color: bool | None) -> N
text = strip_ansi(text)

stdin.write(text.encode(encoding, "replace"))
stdin.flush()
except Exception as e:
# In case there is an exception we want to close the pager immediately
# and let the caller handle it.
Expand Down

0 comments on commit 1b3988a

Please sign in to comment.