From: Kushal Das Date: Wed, 16 Nov 2016 15:43:43 +0000 (+0530) Subject: Closes #28713 uses OSError in the tutorial X-Git-Tag: v3.6.0b4~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ecbca357c95ff1808fd3cca30253af3f34bc6ffa;p=thirdparty%2FPython%2Fcpython.git Closes #28713 uses OSError in the tutorial --- diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 759588fc1057..aba61da5f7c3 100644 --- a/Doc/tutorial/errors.rst +++ b/Doc/tutorial/errors.rst @@ -174,7 +174,7 @@ example:: for arg in sys.argv[1:]: try: f = open(arg, 'r') - except IOError: + except OSError: print('cannot open', arg) else: print(arg, 'has', len(f.readlines()), 'lines')