summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorKushal Das <kushaldas@gmail.com>2016-11-16 15:47:54 (GMT)
committerKushal Das <kushaldas@gmail.com>2016-11-16 15:47:54 (GMT)
commitdfe2387e7947c65661f152849ea760674a826672 (patch)
treebbfadcb7d8acd13d60a6007b2ef7039c088b65b8 /Doc/tutorial
parente6d6131f78fdb08fa8270b7b689571d8058208e3 (diff)
parentecbca357c95ff1808fd3cca30253af3f34bc6ffa (diff)
downloadcpython-dfe2387e7947c65661f152849ea760674a826672.zip
cpython-dfe2387e7947c65661f152849ea760674a826672.tar.gz
cpython-dfe2387e7947c65661f152849ea760674a826672.tar.bz2
Closes #28713 uses OSError in the tutorial
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/errors.rst2
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')