]> granicus.if.org Git - python/commitdiff
this should actually be an IOError
authorBenjamin Peterson <benjamin@python.org>
Fri, 20 May 2011 16:49:06 +0000 (11:49 -0500)
committerBenjamin Peterson <benjamin@python.org>
Fri, 20 May 2011 16:49:06 +0000 (11:49 -0500)
Doc/library/os.rst

index e6bafced8f2220a3d7aae213891f2486b510f84f..187e44a032fe5e3560e54ac23e77c646534cf924 100644 (file)
@@ -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.