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.
  • Loading branch information
elenaoat authored and Mariatta committed May 14, 2018
1 parent bd08a0a commit 7ffd4c5
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 @@ -889,7 +889,7 @@ Text I/O
characters written are translated to 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.

If *write_through* is ``True``, calls to :meth:`write` are guaranteed
not to be buffered: any data written on the :class:`TextIOWrapper`
Expand Down

0 comments on commit 7ffd4c5

Please sign in to comment.