mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +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.
(cherry picked from commit 2f47d8dcc7)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
bcd59134f5
commit
e10bd76d47
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue