Skip to content

Commit 2f47d8d

Browse files
authored
bpo-43927: Change 'IOError' to 'OSError' (GH-26289)
This is the last remaining instance, at least for this chapter, in 3.10 & 3.11.
1 parent c878a97 commit 2f47d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/errors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ disabled by using ``from None`` idiom:
305305

306306
>>> try:
307307
... open('database.sqlite')
308-
... except IOError:
308+
... except OSError:
309309
... raise RuntimeError from None
310310
...
311311
Traceback (most recent call last):

0 commit comments

Comments
 (0)