From eb49916f23a865514fa401d6e258b8aae38cdcde Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Fri, 21 May 2021 13:10:21 -0400 Subject: [PATCH] bpo-43927: Change 'IOError' to 'OSError' --- 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 cd5fc878f9c946..27e39dfe257716 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):