mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Update fcntl doc: replace IOError with OSError
Issue #26716. IOError is a deprecated alias to OSError since Python 3.3.
This commit is contained in:
parent
705c0e38c2
commit
d0d5154251
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue