summaryrefslogtreecommitdiffstats
path: root/Doc/library/io.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-08-03 23:18:56 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-08-03 23:18:56 (GMT)
commit401e17d0f06dd6594835424c5544689abdc0cc9f (patch)
tree7ed5e7ac7d7422b0c07f9c99f018722fd9cf568f /Doc/library/io.rst
parent0c1c0d42dcc8fc223eb3aaa51d09d252b1738820 (diff)
downloadcpython-401e17d0f06dd6594835424c5544689abdc0cc9f.zip
cpython-401e17d0f06dd6594835424c5544689abdc0cc9f.tar.gz
cpython-401e17d0f06dd6594835424c5544689abdc0cc9f.tar.bz2
open() / TextIOWrapper doc: make it explicit than newline='\n' doesn't
translate newlines on output.
Diffstat (limited to 'Doc/library/io.rst')
-rw-r--r--Doc/library/io.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst
index 5f049c5..9aecc7d 100644
--- a/Doc/library/io.rst
+++ b/Doc/library/io.rst
@@ -770,9 +770,9 @@ Text I/O
* On output, if *newline* is ``None``, any ``'\n'`` characters written are
translated to the system default line separator, :data:`os.linesep`. If
- *newline* is ``''``, no translation takes place. If *newline* is any of
- the other legal values, any ``'\n'`` characters written are translated to
- the given string.
+ *newline* is ``''`` or ``'\n'``, no translation takes place. If *newline*
+ is any of the other legal values, any ``'\n'`` 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.