Skip to content

Commit 050e041

Browse files
bpo-22069: Update TextIO documentation (GH-6609)
Clarify that flush is implied when the call to write contains a newline character. (cherry picked from commit 7ffd4c5) Co-authored-by: Elena Oat <[email protected]>
1 parent 2e01f7d commit 050e041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/io.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ Text I/O
889889
characters written are translated to the given string.
890890

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

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

0 commit comments

Comments
 (0)