Skip to content

Commit 84fc6c5

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 afe5f63 commit 84fc6c5

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
@@ -809,7 +809,7 @@ Text I/O
809809
the given string.
810810

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

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

0 commit comments

Comments
 (0)