diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-04-09 09:32:58 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-04-09 09:32:58 (GMT) |
commit | d0d51542511239a2a4b34e6b465d003ccf856a9c (patch) | |
tree | 63474cc7023c2bc7b5b1f85e57a83ede86dc8eaf /Modules/fcntlmodule.c | |
parent | 705c0e38c2157b432edd33440c21298a12771c42 (diff) | |
download | cpython-d0d51542511239a2a4b34e6b465d003ccf856a9c.zip cpython-d0d51542511239a2a4b34e6b465d003ccf856a9c.tar.gz cpython-d0d51542511239a2a4b34e6b465d003ccf856a9c.tar.bz2 |
Update fcntl doc: replace IOError with OSError
Issue #26716. IOError is a deprecated alias to OSError since Python 3.3.
Diffstat (limited to 'Modules/fcntlmodule.c')
-rw-r--r-- | Modules/fcntlmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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). |