@@ -760,22 +760,19 @@ Text I/O
760760 *newline * controls how line endings are handled. It can be ``None ``,
761761 ``'' ``, ``'\n' ``, ``'\r' ``, and ``'\r\n' ``. It works as follows:
762762
763- * When reading input from the stream, if *newline * is ``None ``,
764- universal newlines mode is enabled. Lines in the input can end
765- in ``'\n' ``, ``'\r' ``, or ``'\r\n' ``, and these are translated
766- into ``'\n' `` before being returned to the caller. If it is
767- ``'' ``, universal newline mode is enabled, but line endings are
768- returned to the caller untranslated. If it has any of the other
769- legal values, input lines are only terminated by the given
770- string, and the line ending is returned to the caller
771- untranslated.
772-
773- * When writing output to the stream, if *newline * is ``None ``, any
774- ``'\n' `` characters written are translated to the system default
775- line separator, :data: `os.linesep `. If *newline * is ``'' `` or
776- ``'\n' ``, no translation takes place. If *newline * is any of the
777- other legal values, any ``'\n' `` characters written are
778- translated to the given string.
763+ * When reading input from the stream, if *newline * is ``None ``, universal
764+ newlines mode is enabled. Lines in the input can end in ``'\n' ``,
765+ ``'\r' ``, or ``'\r\n' ``, and these are translated into ``'\n' `` before
766+ being returned to the caller. If it is ``'' ``, universal newline mode is
767+ enabled, but line endings are returned to the caller untranslated. If it
768+ has any of the other legal values, input lines are only terminated by the
769+ given string, and the line ending is returned to the caller untranslated.
770+
771+ * When writing output to the stream, if *newline * is ``None ``, any ``'\n' ``
772+ characters written are translated to the system default line separator,
773+ :data: `os.linesep `. If *newline * is ``'' `` or ``'\n' ``, no translation
774+ takes place. If *newline * is any of the other legal values, any ``'\n' ``
775+ characters written are translated to the given string.
779776
780777 If *line_buffering * is ``True ``, :meth: `flush ` is implied when a call to
781778 write contains a newline character.
0 commit comments