]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98172: Fix formatting in `except*` docs (#98173)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Tue, 11 Oct 2022 16:13:56 +0000 (09:13 -0700)
committerGitHub <noreply@github.com>
Tue, 11 Oct 2022 16:13:56 +0000 (09:13 -0700)
Doc/reference/compound_stmts.rst

index d914686c0a1ad94e6790c848a2d13873a0cf45c2..8963481836431b877a055d3101c7dc219fe62205 100644 (file)
@@ -363,18 +363,17 @@ one :keyword:`!except*` clause, the first that matches it. ::
      +-+---------------- 1 ----------------
        | ValueError: 1
        +------------------------------------
-   >>>
-
-   Any remaining exceptions that were not handled by any :keyword:`!except*`
-   clause are re-raised at the end, combined into an exception group along with
-   all exceptions that were raised from within :keyword:`!except*` clauses.
-
-   An :keyword:`!except*` clause must have a matching type,
-   and this type cannot be a subclass of :exc:`BaseExceptionGroup`.
-   It is not possible to mix :keyword:`except` and :keyword:`!except*`
-   in the same :keyword:`try`.
-   :keyword:`break`, :keyword:`continue` and :keyword:`return`
-   cannot appear in an :keyword:`!except*` clause.
+
+Any remaining exceptions that were not handled by any :keyword:`!except*`
+clause are re-raised at the end, combined into an exception group along with
+all exceptions that were raised from within :keyword:`!except*` clauses.
+
+An :keyword:`!except*` clause must have a matching type,
+and this type cannot be a subclass of :exc:`BaseExceptionGroup`.
+It is not possible to mix :keyword:`except` and :keyword:`!except*`
+in the same :keyword:`try`.
+:keyword:`break`, :keyword:`continue` and :keyword:`return`
+cannot appear in an :keyword:`!except*` clause.
 
 
 .. index::