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 | 2340986fe0a4637c6afdda81953973badfaaba73 (patch) | |
| tree | 6f23ff9c1cd404e37b9328fc910d9eccc203a2b0 | |
| parent | 249b508c98d99597c170bdb9d6a4b1d56d839ebd (diff) | |
| download | cpython-2340986fe0a4637c6afdda81953973badfaaba73.zip cpython-2340986fe0a4637c6afdda81953973badfaaba73.tar.gz cpython-2340986fe0a4637c6afdda81953973badfaaba73.tar.bz2 | |
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 e6bafce..187e44a 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -784,7 +784,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. |
