Skip to content

Commit 40527c2

Browse files
miss-islingtonslateny
authored andcommitted
gh-64921: Clarify wording for open()'s newline arg (GH-96171)
(cherry picked from commit 4a74e6a) Co-authored-by: Stanley <[email protected]>
1 parent 517ffe0 commit 40527c2

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
@@ -1267,8 +1267,8 @@ are always available. They are listed here in alphabetical order.
12671267

12681268
.. _open-newline-parameter:
12691269

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

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

0 commit comments

Comments
 (0)