summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2021-05-21 17:54:01 (GMT)
committerGitHub <noreply@github.com>2021-05-21 17:54:01 (GMT)
commit2f47d8dcc735234bf9c7f92fbdacd8c5a6ee7761 (patch)
treeb56c3722deb6d274d7981e060caa75c56e8a415e /Doc/tutorial
parentc878a9796841c1f4726e6dd5ac49a478af4c8504 (diff)
downloadcpython-2f47d8dcc735234bf9c7f92fbdacd8c5a6ee7761.zip
cpython-2f47d8dcc735234bf9c7f92fbdacd8c5a6ee7761.tar.gz
cpython-2f47d8dcc735234bf9c7f92fbdacd8c5a6ee7761.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.
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):