summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-07 11:21:44 -0700
committerGitHub <noreply@github.com>2022-10-07 11:21:44 -0700
commit5054ae23ce9e5b6e43d9da4d9a4e3ed7fd9ab8e1 (patch)
tree2ac58a4c175781b609aabf8cd8599832a5b8cf71
parentda986c68c913e8902695704c748fb5b14d47f1f8 (diff)
downloadcpython-git-5054ae23ce9e5b6e43d9da4d9a4e3ed7fd9ab8e1.tar.gz
gh-64921: Clarify wording for open()'s newline arg (GH-96171)
(cherry picked from commit 4a74e6ab3885e7906cc5e0b15addc7779bc76249) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
-rw-r--r--Doc/library/functions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index d84977fd86..86b88c0c55 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1244,8 +1244,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