[Python-checkins] bpo-22069: Update TextIO documentation (GH-6609)

Miss Islington (bot) webhook-mailer at python.org
Mon May 14 12:08:56 EDT 2018


https://github.com/python/cpython/commit/050e041bf7e5260013a74c75a05a3f0fb16447ec
commit: 050e041bf7e5260013a74c75a05a3f0fb16447ec
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-05-14T09:08:53-07:00
summary:

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 7ffd4c58fae08b29259eebd6cbcd2287820b14e8)

Co-authored-by: Elena Oat <oat.elena at gmail.com>

files:
M Doc/library/io.rst

diff --git a/Doc/library/io.rst b/Doc/library/io.rst
index 5c71d900fd25..f2e0fdbc5bf3 100644
--- a/Doc/library/io.rst
+++ b/Doc/library/io.rst
@@ -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`



More information about the Python-checkins mailing list