Skip to content

Commit 921f61b

Browse files
authored
Doc: Apply keyword role around finally (in sys module doc) (GH-138544)
1 parent 4ef51fa commit 921f61b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/sys.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,9 @@ always available. Unless explicitly noted otherwise, all variables are read-only
523523

524524
Since :func:`exit` ultimately "only" raises an exception, it will only exit
525525
the process when called from the main thread, and the exception is not
526-
intercepted. Cleanup actions specified by finally clauses of :keyword:`try` statements
527-
are honored, and it is possible to intercept the exit attempt at an outer level.
526+
intercepted. Cleanup actions specified by :keyword:`finally` clauses of
527+
:keyword:`try` statements are honored, and it is possible to intercept the
528+
exit attempt at an outer level.
528529

529530
.. versionchanged:: 3.6
530531
If an error occurs in the cleanup after the Python interpreter

0 commit comments

Comments
 (0)