Skip to content

Commit 4a74e6a

Browse files
authored
gh-64921: Clarify wording for open()'s newline arg (#96171)
1 parent 24a6645 commit 4a74e6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,8 +1254,8 @@ are always available. They are listed here in alphabetical order.
12541254

12551255
.. _open-newline-parameter:
12561256

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

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

0 commit comments

Comments
 (0)