mirror of
https://github.com/python/cpython
synced 2024-09-15 21:40:06 +00:00
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:
parent
c878a97968
commit
2f47d8dcc7
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue