From: Benjamin Peterson Date: Fri, 20 May 2011 16:49:06 +0000 (-0500) Subject: this should actually be an IOError X-Git-Tag: v3.1.4rc1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2340986fe0a4637c6afdda81953973badfaaba73;p=python this should actually be an IOError --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index e6bafced8f..187e44a032 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.