Skip to content

Commit

Permalink
pythongh-64921: Clarify wording for open()'s newline arg (python#96171)
Browse files Browse the repository at this point in the history
  • Loading branch information
slateny authored Oct 7, 2022
1 parent 24a6645 commit 4a74e6a
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 4a74e6a

Please sign in to comment.