Skip to content

Commit d02be10

Browse files
gh-98172: Fix formatting in except* docs
1 parent f871e9a commit d02be10

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Doc/reference/compound_stmts.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -365,16 +365,16 @@ one :keyword:`!except*` clause, the first that matches it. ::
365365
+------------------------------------
366366
>>>
367367

368-
Any remaining exceptions that were not handled by any :keyword:`!except*`
369-
clause are re-raised at the end, combined into an exception group along with
370-
all exceptions that were raised from within :keyword:`!except*` clauses.
371-
372-
An :keyword:`!except*` clause must have a matching type,
373-
and this type cannot be a subclass of :exc:`BaseExceptionGroup`.
374-
It is not possible to mix :keyword:`except` and :keyword:`!except*`
375-
in the same :keyword:`try`.
376-
:keyword:`break`, :keyword:`continue` and :keyword:`return`
377-
cannot appear in an :keyword:`!except*` clause.
368+
Any remaining exceptions that were not handled by any :keyword:`!except*`
369+
clause are re-raised at the end, combined into an exception group along with
370+
all exceptions that were raised from within :keyword:`!except*` clauses.
371+
372+
An :keyword:`!except*` clause must have a matching type,
373+
and this type cannot be a subclass of :exc:`BaseExceptionGroup`.
374+
It is not possible to mix :keyword:`except` and :keyword:`!except*`
375+
in the same :keyword:`try`.
376+
:keyword:`break`, :keyword:`continue` and :keyword:`return`
377+
cannot appear in an :keyword:`!except*` clause.
378378

379379

380380
.. index::

0 commit comments

Comments
 (0)