diff options
author | Kushal Das <kushaldas@gmail.com> | 2016-11-16 15:47:54 (GMT) |
---|---|---|
committer | Kushal Das <kushaldas@gmail.com> | 2016-11-16 15:47:54 (GMT) |
commit | dfe2387e7947c65661f152849ea760674a826672 (patch) | |
tree | bbfadcb7d8acd13d60a6007b2ef7039c088b65b8 | |
parent | e6d6131f78fdb08fa8270b7b689571d8058208e3 (diff) | |
parent | ecbca357c95ff1808fd3cca30253af3f34bc6ffa (diff) | |
download | cpython-dfe2387e7947c65661f152849ea760674a826672.zip cpython-dfe2387e7947c65661f152849ea760674a826672.tar.gz cpython-dfe2387e7947c65661f152849ea760674a826672.tar.bz2 |
Closes #28713 uses OSError in the tutorial
-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') |