gh-64921: Clarify wording for open()'s newline arg (GH-96171)

(cherry picked from commit 4a74e6ab38)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-10-07 11:21:01 -07:00 committed by GitHub
parent 69029bd2ca
commit 3dc8eb41bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1254,8 +1254,8 @@ are always available. They are listed here in alphabetical order.
.. _open-newline-parameter:
*newline* controls how :term:`universal newlines` mode works (it only
applies to text mode). It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and
*newline* determines how to parse newline characters from the stream.
It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and
``'\r\n'``. It works as follows:
* When reading input from the stream, if *newline* is ``None``, universal