Skip to content

Commit 9fd5b5f

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 48fdbbf commit 9fd5b5f

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
@@ -880,7 +880,7 @@ Text I/O
880880
characters written are translated to the given string.
881881

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

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

0 commit comments

Comments
 (0)