Skip to content

Commit 10a62bb

Browse files
miss-islingtonShreyash Sharma
andauthored
Fix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25794)
(cherry picked from commit 7792324) Co-authored-by: Shreyash Sharma <[email protected]> Co-authored-by: Shreyash Sharma <[email protected]>
1 parent 5c018db commit 10a62bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/os.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3250,9 +3250,9 @@ These functions are all available on Linux only.
32503250
indirectly through the :class:`PathLike` interface). If it is a str,
32513251
it is encoded with the filesystem encoding. *flags* may be
32523252
:data:`XATTR_REPLACE` or :data:`XATTR_CREATE`. If :data:`XATTR_REPLACE` is
3253-
given and the attribute does not exist, ``EEXISTS`` will be raised.
3253+
given and the attribute does not exist, ``ENODATA`` will be raised.
32543254
If :data:`XATTR_CREATE` is given and the attribute already exists, the
3255-
attribute will not be created and ``ENODATA`` will be raised.
3255+
attribute will not be created and ``EEXISTS`` will be raised.
32563256

32573257
This function can support :ref:`specifying a file descriptor <path_fd>` and
32583258
:ref:`not following symlinks <follow_symlinks>`.

0 commit comments

Comments
 (0)