From 2f47d8dcc735234bf9c7f92fbdacd8c5a6ee7761 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Fri, 21 May 2021 13:54:01 -0400 Subject: bpo-43927: Change 'IOError' to 'OSError' (GH-26289) This is the last remaining instance, at least for this chapter, in 3.10 & 3.11. --- Doc/tutorial/errors.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v0.12