From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 14 May 2018 16:11:42 +0000 (-0700) Subject: bpo-22069: Update TextIO documentation (GH-6609) X-Git-Tag: v2.7.16rc1~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84fc6c59cf286fc4e6b3a700c6db36ecc2bff92b;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Doc/library/io.rst b/Doc/library/io.rst index b99324cdb38a..300041dc3bb1 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -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: