bpo-43927: Change 'IOError' to 'OSError' (GH-26289)

This is the last remaining instance, at least for this chapter, in 3.10 & 3.11.
This commit is contained in:
Terry Jan Reedy 2021-05-21 13:54:01 -04:00 committed by GitHub
parent c878a97968
commit 2f47d8dcc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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):