commit | ecbca357c95ff1808fd3cca30253af3f34bc6ffa | [log] [tgz] |
---|---|---|
author | Kushal Das <kushaldas@gmail.com> | Wed Nov 16 21:13:43 2016 +0530 |
committer | Kushal Das <kushaldas@gmail.com> | Wed Nov 16 21:13:43 2016 +0530 |
tree | 6165ec18db334915ed840b198282aedf4fa1f1d4 | |
parent | df66b9c425f90cc4a5dc910daf4ca3dedcc265c9 [diff] |
Closes #28713 uses OSError in the tutorial
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 759588f..aba61da 100644 --- a/Doc/tutorial/errors.rst +++ b/Doc/tutorial/errors.rst
@@ -174,7 +174,7 @@ 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')