Skip to content

Commit 9860b8a

Browse files
adorilsonlkollar
authored andcommitted
Doc: Apply keyword role around finally (in sys module doc) (pythonGH-138544)
1 parent 3cf19f3 commit 9860b8a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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)