]> granicus.if.org Git - python/commitdiff
#13233: fix typo.
authorEzio Melotti <ezio.melotti@gmail.com>
Thu, 20 Oct 2011 16:49:29 +0000 (19:49 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Thu, 20 Oct 2011 16:49:29 +0000 (19:49 +0300)
Doc/library/os.rst

index c7a57f665466a6973dc33f99ef4a454a75e2c171..2c8607623402fe382f0f0ca000221e26e2e03a80 100644 (file)
@@ -936,7 +936,7 @@ Files and Directories
          try:
              fp = open("myfile")
          except IOError as e:
-             if e.errno == errno.EACCESS:
+             if e.errno == errno.EACCES:
                  return "some default data"
              # Not a permission error.
              raise