mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Fix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25794)
(cherry picked from commit 779232413a
)
Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
This commit is contained in:
parent
5c018db467
commit
10a62bbecc
1 changed files with 2 additions and 2 deletions
|
@ -3250,9 +3250,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 filesystem encoding. *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>`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue