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

This commit is contained in:
Stanley 2022-10-07 11:12:08 -07:00 committed by GitHub
parent 24a6645894
commit 4a74e6ab38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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