Skip to content

Commit 5054ae2

Browse files
gh-64921: Clarify wording for open()'s newline arg (GH-96171)
(cherry picked from commit 4a74e6a) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
1 parent da986c6 commit 5054ae2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/functions.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1244,8 +1244,8 @@ are always available. They are listed here in alphabetical order.
12441244

12451245
.. _open-newline-parameter:
12461246

1247-
*newline* controls how :term:`universal newlines` mode works (it only
1248-
applies to text mode). It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and
1247+
*newline* determines how to parse newline characters from the stream.
1248+
It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and
12491249
``'\r\n'``. It works as follows:
12501250

12511251
* When reading input from the stream, if *newline* is ``None``, universal

0 commit comments

Comments
 (0)