]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Fix ambiguous pronoun (GH-26037)
authorDaniel Shahaf <d.s@daniel.shahaf.name>
Fri, 14 May 2021 06:27:06 +0000 (06:27 +0000)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 06:27:06 +0000 (23:27 -0700)
Doc/reference/compound_stmts.rst

index 0274095feffdefd8e3774c27fbaa00ed7b534590..c405423b75a65b0f6b6738f7988901f4fe8239db 100644 (file)
@@ -254,7 +254,7 @@ is found that matches the exception.  An expression-less except clause, if
 present, must be last; it matches any exception.  For an except clause with an
 expression, that expression is evaluated, and the clause matches the exception
 if the resulting object is "compatible" with the exception.  An object is
-compatible with an exception if it is the class or a base class of the exception
+compatible with an exception if the object is the class or a base class of the exception
 object, or a tuple containing an item that is the class or a base class of
 the exception object.