@@ -770,18 +770,21 @@ Text I/O
770770 *newline * controls how line endings are handled. It can be ``None ``,
771771 ``'' ``, ``'\n' ``, ``'\r' ``, and ``'\r\n' ``. It works as follows:
772772
773- * On input, if *newline * is ``None ``, universal newlines mode is enabled.
774- Lines in the input can end in ``'\n' ``, ``'\r' ``, or ``'\r\n' ``, and these
775- are translated into ``'\n' `` before being returned to the caller. If it is
776- ``'' ``, universal newline mode is enabled, but line endings are returned to
777- the caller untranslated. If it has any of the other legal values, input
778- lines are only terminated by the given string, and the line ending is
779- returned to the caller untranslated.
780-
781- * On output, if *newline * is ``None ``, any ``'\n' `` characters written are
782- translated to the system default line separator, :data: `os.linesep `. If
783- *newline * is ``'' `` or ``'\n' ``, no translation takes place. If *newline *
784- is any of the other legal values, any ``'\n' `` characters written are
773+ * When reading input from the stream, if *newline * is ``None ``,
774+ universal newlines mode is enabled. Lines in the input can end
775+ in ``'\n' ``, ``'\r' ``, or ``'\r\n' ``, and these are translated
776+ into ``'\n' `` before being returned to the caller. If it is
777+ ``'' ``, universal newline mode is enabled, but line endings are
778+ returned to the caller untranslated. If it has any of the other
779+ legal values, input lines are only terminated by the given
780+ string, and the line ending is returned to the caller
781+ untranslated.
782+
783+ * When writing output to the stream, if *newline * is ``None ``, any
784+ ``'\n' `` characters written are translated to the system default
785+ line separator, :data: `os.linesep `. If *newline * is ``'' `` or
786+ ``'\n' ``, no translation takes place. If *newline * is any of the
787+ other legal values, any ``'\n' `` characters written are
785788 translated to the given string.
786789
787790 If *line_buffering * is ``True ``, :meth: `flush ` is implied when a call to
0 commit comments