[Python-checkins] [3.12] Reformat code block to make it easier to read (GH-106965) (#107010)
ambv
webhook-mailer at python.org
Sat Jul 22 08:54:17 EDT 2023
https://github.com/python/cpython/commit/e7757ab9e13b88a37c4490751782d010b0b44015
commit: e7757ab9e13b88a37c4490751782d010b0b44015
branch: 3.12
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2023-07-22T14:54:13+02:00
summary:
[3.12] Reformat code block to make it easier to read (GH-106965) (#107010)
(cherry picked from commit ed491d9f782480fb00535abcf667027e0e323287)
Co-authored-by: Joe Kaufeld <opensource at joekaufeld.com>
files:
M Doc/tutorial/errors.rst
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst
index 6419ff621f1b3..8a207c385c6ab 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -535,11 +535,20 @@ of a certain type while letting all other exceptions propagate to
other clauses and eventually to be reraised. ::
>>> def f():
- ... raise ExceptionGroup("group1",
- ... [OSError(1),
- ... SystemError(2),
- ... ExceptionGroup("group2",
- ... [OSError(3), RecursionError(4)])])
+ ... raise ExceptionGroup(
+ ... "group1",
+ ... [
+ ... OSError(1),
+ ... SystemError(2),
+ ... ExceptionGroup(
+ ... "group2",
+ ... [
+ ... OSError(3),
+ ... RecursionError(4)
+ ... ]
+ ... )
+ ... ]
+ ... )
...
>>> try:
... f()
More information about the Python-checkins
mailing list