Skip to content

Commit 7792324

Browse files
author
Shreyash Sharma
authored
Fix exceptions mentioned in os.setxattr() docs (pythonGH-25742)
1 parent 1ae05fd commit 7792324

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
@@ -3478,9 +3478,9 @@ These functions are all available on Linux only.
34783478
indirectly through the :class:`PathLike` interface). If it is a str,
34793479
it is encoded with the :term:`filesystem encoding and error handler`. *flags* may be
34803480
:data:`XATTR_REPLACE` or :data:`XATTR_CREATE`. If :data:`XATTR_REPLACE` is
3481-
given and the attribute does not exist, ``EEXISTS`` will be raised.
3481+
given and the attribute does not exist, ``ENODATA`` will be raised.
34823482
If :data:`XATTR_CREATE` is given and the attribute already exists, the
3483-
attribute will not be created and ``ENODATA`` will be raised.
3483+
attribute will not be created and ``EEXISTS`` will be raised.
34843484

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

0 commit comments

Comments
 (0)