]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-22069: Update TextIO documentation (GH-6609)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 14 May 2018 16:11:42 +0000 (09:11 -0700)
committerGitHub <noreply@github.com>
Mon, 14 May 2018 16:11:42 +0000 (09:11 -0700)
Clarify that flush is implied when the call to write contains a newline character.
(cherry picked from commit 7ffd4c58fae08b29259eebd6cbcd2287820b14e8)

Co-authored-by: Elena Oat <oat.elena@gmail.com>
Doc/library/io.rst

index b99324cdb38ad6582037875dde8ddb5659bfd7cb..300041dc3bb176b40d7dc084cb218ed7688cab20 100644 (file)
@@ -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: