Skip to content

Commit a00f297

Browse files
iritkatrielpicnixz
andauthored
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent a4b65f7 commit a00f297

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ If the :keyword:`!finally` clause executes a :keyword:`return`, :keyword:`break`
423423
or :keyword:`continue` statement, the saved exception is discarded. For example,
424424
this function returns 42.
425425

426-
.. code::
426+
.. code-block::
427427
428428
def f():
429429
try:
@@ -448,7 +448,7 @@ statement executed. Since the :keyword:`!finally` clause always executes, a
448448
:keyword:`!return` statement executed in the :keyword:`!finally` clause will
449449
always be the last one executed. The following function returns 'finally'.
450450

451-
.. code::
451+
.. code-block::
452452
453453
def foo():
454454
try:
@@ -460,7 +460,7 @@ always be the last one executed. The following function returns 'finally'.
460460
Prior to Python 3.8, a :keyword:`continue` statement was illegal in the
461461
:keyword:`!finally` clause due to a problem with the implementation.
462462

463-
.. versionchanged:: 3.14
463+
.. versionchanged:: next
464464
The compiler emits a :exc:`SyntaxWarning` when a :keyword:`return`,
465465
:keyword:`break` or :keyword:`continue` appears in a :keyword:`!finally`
466466
block (see :pep:`765`).

0 commit comments

Comments
 (0)