[Python-checkins] cpython (2.7): this should actually be an IOError

benjamin.peterson python-checkins at python.org
Fri May 20 18:50:07 CEST 2011


http://hg.python.org/cpython/rev/b3f410dbab25
changeset:   70235:b3f410dbab25
branch:      2.7
parent:      70229:0ba50310cd9d
user:        Benjamin Peterson <benjamin at python.org>
date:        Fri May 20 11:49:06 2011 -0500
summary:
  this should actually be an IOError

files:
  Doc/library/os.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/os.rst b/Doc/library/os.rst
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -928,7 +928,7 @@
 
          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.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list