Skip to content

Commit

Permalink
bpo-22069: Update TextIO documentation (GH-6609)
Browse files Browse the repository at this point in the history
Clarify that flush is implied when the call to write contains a newline character.
(cherry picked from commit 7ffd4c5)

Co-authored-by: Elena Oat <oat.elena@gmail.com>
  • Loading branch information
miss-islington and elenaoat authored May 14, 2018
1 parent afe5f63 commit 84fc6c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ Text I/O
the given string.

If *line_buffering* is ``True``, :meth:`flush` is implied when a call to
write contains a newline character.
write contains a newline character or a carriage return.

:class:`TextIOWrapper` provides one attribute in addition to those of
:class:`TextIOBase` and its parents:
Expand Down

0 comments on commit 84fc6c5

Please sign in to comment.