diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-05-20 11:49:06 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-05-20 11:49:06 -0500 |
commit | ce77defd845b56a1910143568e5827c66dfca1ae (patch) | |
tree | 7625e661e11a243e0c062e03d1d3951c55ece508 | |
parent | 30e10d8114b68613f35e98159eb428f0be0cb769 (diff) | |
download | cpython-git-ce77defd845b56a1910143568e5827c66dfca1ae.tar.gz |
this should actually be an IOError
-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 0466da4487..7915b2237b 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. |