diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functions.rst | 6 | ||||
-rw-r--r-- | Doc/library/io.rst | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index b6252e6..72bc7cb 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -888,9 +888,9 @@ are always available. They are listed here in alphabetical order. * 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 *closefd* is ``False`` and a file descriptor rather than a filename was given, the underlying file descriptor will be kept open when the file is 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. |