diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-05-20 16:49:06 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-05-20 16:49:06 (GMT) |
commit | ce77defd845b56a1910143568e5827c66dfca1ae (patch) | |
tree | 7625e661e11a243e0c062e03d1d3951c55ece508 /Doc/library | |
parent | 30e10d8114b68613f35e98159eb428f0be0cb769 (diff) | |
download | cpython-ce77defd845b56a1910143568e5827c66dfca1ae.zip cpython-ce77defd845b56a1910143568e5827c66dfca1ae.tar.gz cpython-ce77defd845b56a1910143568e5827c66dfca1ae.tar.bz2 |
this should actually be an IOError
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/os.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 0466da4..7915b22 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -928,7 +928,7 @@ Files and Directories try: fp = open("myfile") - except OSError as e: + except IOError as e: if e.errno == errno.EACCESS: return "some default data" # Not a permission error. |