]> granicus.if.org Git - python/commitdiff
bpo-22069: Update TextIO documentation (GH-6609)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 14 May 2018 16:08:53 +0000 (09:08 -0700)
committerGitHub <noreply@github.com>
Mon, 14 May 2018 16:08:53 +0000 (09:08 -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 5c71d900fd258d06ad3d6454d2619eb7c735b451..f2e0fdbc5bf3cd4c7991e32ebc979c2287dbbac0 100644 (file)
@@ -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`