]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-64921: Clarify wording for open()'s newline arg (#96171)
authorStanley <46876382+slateny@users.noreply.github.com>
Fri, 7 Oct 2022 18:12:08 +0000 (11:12 -0700)
committerGitHub <noreply@github.com>
Fri, 7 Oct 2022 18:12:08 +0000 (11:12 -0700)
Doc/library/functions.rst

index 26ee302d2eabc35b80d8cc765deb9e4a423468c2..93c9f4ad2bc23a6d119eb2607dc48531f66c23a3 100644 (file)
@@ -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