summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-04-09 09:33:53 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-04-09 09:33:53 (GMT)
commit1edcd50b5d19514b054b6296353ce11a9fd3bac2 (patch)
treedbe0e234e29fcb3dc3111315bd3e1ff56f75e3d0
parentd7e44b61e7066f1049a692555e77382042c98ea4 (diff)
parentd0d51542511239a2a4b34e6b465d003ccf856a9c (diff)
downloadcpython-1edcd50b5d19514b054b6296353ce11a9fd3bac2.zip
cpython-1edcd50b5d19514b054b6296353ce11a9fd3bac2.tar.gz
cpython-1edcd50b5d19514b054b6296353ce11a9fd3bac2.tar.bz2
Merge 3.5: fcntl doc
-rw-r--r--Doc/library/fcntl.rst4
-rw-r--r--Modules/fcntlmodule.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/fcntl.rst b/Doc/library/fcntl.rst
index f8bb834..22f0f25 100644
--- a/Doc/library/fcntl.rst
+++ b/Doc/library/fcntl.rst
@@ -83,7 +83,7 @@ The module defines the following functions:
buffer 1024 bytes long which is then passed to :func:`ioctl` and copied back
into the supplied buffer.
- If the :c:func:`ioctl` fails, an :exc:`IOError` exception is raised.
+ If the :c:func:`ioctl` fails, an :exc:`OSError` exception is raised.
An example::
@@ -106,7 +106,7 @@ The module defines the following functions:
:manpage:`flock(2)` for details. (On some systems, this function is emulated
using :c:func:`fcntl`.)
- If the :c:func:`flock` fails, an :exc:`IOError` exception is raised.
+ If the :c:func:`flock` fails, an :exc:`OSError` exception is raised.
.. function:: lockf(fd, cmd, len=0, start=0, whence=0)
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
index 97ff07c..e61c930 100644
--- a/Modules/fcntlmodule.c
+++ b/Modules/fcntlmodule.c
@@ -344,7 +344,7 @@ of the following values:
When operation is LOCK_SH or LOCK_EX, it can also be bitwise ORed with
LOCK_NB to avoid blocking on lock acquisition. If LOCK_NB is used and the
-lock cannot be acquired, an IOError will be raised and the exception will
+lock cannot be acquired, an OSError will be raised and the exception will
have an errno attribute set to EACCES or EAGAIN (depending on the operating
system -- for portability, check for either value).