]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43927: Change 'IOError' to 'OSError' (GH-26289)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 21 May 2021 18:17:10 +0000 (11:17 -0700)
committerGitHub <noreply@github.com>
Fri, 21 May 2021 18:17:10 +0000 (11:17 -0700)
This is the last remaining instance, at least for this chapter, in 3.10 & 3.11.
(cherry picked from commit 2f47d8dcc735234bf9c7f92fbdacd8c5a6ee7761)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/tutorial/errors.rst

index 7bb0b4898990739b3e8ec3d5a4ef633c36ca8fdd..516c925b72f5e79b4d0d56c089ac8f648e64b63b 100644 (file)
@@ -305,7 +305,7 @@ disabled by using ``from None`` idiom:
 
     >>> try:
     ...     open('database.sqlite')
-    ... except IOError:
+    ... except OSError:
     ...     raise RuntimeError from None
     ...
     Traceback (most recent call last):