Fix exceptions mentioned in os.setxattr() docs (GH-25742)

This commit is contained in:
Shreyash Sharma 2021-05-02 02:24:39 +05:30 committed by GitHub
parent 1ae05fdf2d
commit 779232413a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3478,9 +3478,9 @@ These functions are all available on Linux only.
indirectly through the :class:`PathLike` interface). If it is a str,
it is encoded with the :term:`filesystem encoding and error handler`. *flags* may be
:data:`XATTR_REPLACE` or :data:`XATTR_CREATE`. If :data:`XATTR_REPLACE` is
given and the attribute does not exist, ``EEXISTS`` will be raised.
given and the attribute does not exist, ``ENODATA`` will be raised.
If :data:`XATTR_CREATE` is given and the attribute already exists, the
attribute will not be created and ``ENODATA`` will be raised.
attribute will not be created and ``EEXISTS`` will be raised.
This function can support :ref:`specifying a file descriptor <path_fd>` and
:ref:`not following symlinks <follow_symlinks>`.