]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Fix grammatical typos in documentation (GH-154181) (#154191)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Jul 2026 06:35:36 +0000 (08:35 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 06:35:36 +0000 (08:35 +0200)
Fix grammatical typos in documentation (GH-154181)
(cherry picked from commit 40f7fbf4a53d2f2cb0414a22f891d6e7e288280c)

Co-authored-by: ilya <110783299+bontail@users.noreply.github.com>
Doc/library/ast.rst
Doc/library/compression.zstd.rst
Doc/library/sys.rst

index 2fbc391f7e556cc2557e4162de7d679249df4482..5338d407ca22596bf92f94dae38ae0fc59db2ce6 100644 (file)
@@ -1364,7 +1364,7 @@ Control flow
 
    ``try`` blocks which are followed by ``except*`` clauses. The attributes are the
    same as for :class:`Try` but the :class:`ExceptHandler` nodes in ``handlers``
-   are interpreted as ``except*`` blocks rather then ``except``.
+   are interpreted as ``except*`` blocks rather than ``except``.
 
    .. doctest::
 
index 7ca843f27f5e9a602f5b63a313358e81f86c8cac..25459640f8e2e929fe8658f3a360c3e495897b3f 100644 (file)
@@ -499,7 +499,7 @@ Advanced parameter control
    The :meth:`~.bounds` method can be used on any attribute to get the valid
    values for that parameter.
 
-   Parameters are optional; any omitted parameter will have it's value selected
+   Parameters are optional; any omitted parameter will have its value selected
    automatically.
 
    Example getting the lower and upper bound of :attr:`~.compression_level`::
@@ -728,7 +728,7 @@ Advanced parameter control
 
    An :class:`~enum.IntEnum` containing the advanced decompression parameter
    keys that can be used when decompressing data. Parameters are optional; any
-   omitted parameter will have it's value selected automatically.
+   omitted parameter will have its value selected automatically.
 
    The :meth:`~.bounds` method can be used on any attribute to get the valid
    values for that parameter.
index 3420f88e36f5f902a6228c197b4acaf9c57d491b..9078af7cac78d61b0e5a1971e3142306cebc3be3 100644 (file)
@@ -2017,7 +2017,7 @@ always available. Unless explicitly noted otherwise, all variables are read-only
    returned by the :func:`open` function.  Their parameters are chosen as
    follows:
 
-   * The encoding and error handling are is initialized from
+   * The encoding and error handling are initialized from
      :c:member:`PyConfig.stdio_encoding` and :c:member:`PyConfig.stdio_errors`.
 
      On Windows, UTF-8 is used for the console device.  Non-character