diff options
author | Kushal Das <kushaldas@gmail.com> | 2016-11-16 15:43:43 (GMT) |
---|---|---|
committer | Kushal Das <kushaldas@gmail.com> | 2016-11-16 15:43:43 (GMT) |
commit | ecbca357c95ff1808fd3cca30253af3f34bc6ffa (patch) | |
tree | 6165ec18db334915ed840b198282aedf4fa1f1d4 /Doc | |
parent | df66b9c425f90cc4a5dc910daf4ca3dedcc265c9 (diff) | |
download | cpython-ecbca357c95ff1808fd3cca30253af3f34bc6ffa.zip cpython-ecbca357c95ff1808fd3cca30253af3f34bc6ffa.tar.gz cpython-ecbca357c95ff1808fd3cca30253af3f34bc6ffa.tar.bz2 |
Closes #28713 uses OSError in the tutorial
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tutorial/errors.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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') |