mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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
|
|
@ -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).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue