Skip to content

Commit

Permalink
gh-64921: Clarify wording for open()'s newline arg (GH-96171)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4a74e6a)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
  • Loading branch information
miss-islington and slateny authored Oct 7, 2022
1 parent 69029bd commit 3dc8eb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3dc8eb4

Please sign in to comment.