]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43927: Change 'IOError' to 'OSError' (GH-26289)
authorTerry Jan Reedy <tjreedy@udel.edu>
Fri, 21 May 2021 17:54:01 +0000 (13:54 -0400)
committerGitHub <noreply@github.com>
Fri, 21 May 2021 17:54:01 +0000 (13:54 -0400)
This is the last remaining instance, at least for this chapter, in 3.10 & 3.11.

Doc/tutorial/errors.rst

index cd5fc878f9c946be6fccb3e4c56871102ca13d66..27e39dfe2577168187edab58014f553675948fdd 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):