summaryrefslogtreecommitdiffstats
path: root/Doc/library/io.rst
diff options
context:
space:
mode:
authorElena Oat <oat.elena@gmail.com>2018-05-14 14:48:01 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2018-05-14 14:48:01 (GMT)
commit7ffd4c58fae08b29259eebd6cbcd2287820b14e8 (patch)
treedd30562695878c4c362ea04f51b936ccf7174482 /Doc/library/io.rst
parentbd08a0af2d88c590ede762102bd42da3437e9980 (diff)
downloadcpython-7ffd4c58fae08b29259eebd6cbcd2287820b14e8.zip
cpython-7ffd4c58fae08b29259eebd6cbcd2287820b14e8.tar.gz
cpython-7ffd4c58fae08b29259eebd6cbcd2287820b14e8.tar.bz2
bpo-22069: Update TextIO documentation (GH-6609)
Clarify that flush is implied when the call to write contains a newline character.
Diffstat (limited to 'Doc/library/io.rst')
-rw-r--r--Doc/library/io.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst
index 5c71d90..f2e0fdb 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`