]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Apply keyword role around finally (in sys module doc) (GH-138544)
authorAdorilson Bezerra <adorilson@gmail.com>
Mon, 8 Sep 2025 12:02:36 +0000 (13:02 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Sep 2025 12:02:36 +0000 (14:02 +0200)
Doc/library/sys.rst

index 30fd4db1fd18519a7ce006ad8a9ce77fca7d0f10..70d68c06187b605e7979ffccbe8f4cfcc5ef2f65 100644 (file)
@@ -523,8 +523,9 @@ always available. Unless explicitly noted otherwise, all variables are read-only
 
    Since :func:`exit` ultimately "only" raises an exception, it will only exit
    the process when called from the main thread, and the exception is not
-   intercepted. Cleanup actions specified by finally clauses of :keyword:`try` statements
-   are honored, and it is possible to intercept the exit attempt at an outer level.
+   intercepted. Cleanup actions specified by :keyword:`finally` clauses of
+   :keyword:`try` statements are honored, and it is possible to intercept the
+   exit attempt at an outer level.
 
    .. versionchanged:: 3.6
       If an error occurs in the cleanup after the Python interpreter