summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-21 18:15:36 (GMT)
committerGitHub <noreply@github.com>2021-05-21 18:15:36 (GMT)
commit150bc1f4aa67226fb05fb29032375c203252a538 (patch)
tree7bbfb06da0f0f9765b57e785a7cfa67084eaf6f7 /Doc/tutorial
parentfdb65e399ea4e2d13dd41d65662ba25cafe15f1d (diff)
downloadcpython-150bc1f4aa67226fb05fb29032375c203252a538.zip
cpython-150bc1f4aa67226fb05fb29032375c203252a538.tar.gz
cpython-150bc1f4aa67226fb05fb29032375c203252a538.tar.bz2
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 2f47d8dcc735234bf9c7f92fbdacd8c5a6ee7761) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/errors.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst
index cd5fc87..27e39df 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -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):