Skip to content

Commit ce081fb

Browse files
miss-islingtonShreyash Sharma
and
Shreyash Sharma
authored
Fix exceptions mentioned in os.setxattr() docs (pythonGH-25742) (pythonGH-25795)
(cherry picked from commit 7792324) Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com> Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
1 parent 3519ac4 commit ce081fb

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
@@ -3237,9 +3237,9 @@ These functions are all available on Linux only.
32373237
indirectly through the :class:`PathLike` interface). If it is a str,
32383238
it is encoded with the filesystem encoding. *flags* may be
32393239
:data:`XATTR_REPLACE` or :data:`XATTR_CREATE`. If :data:`XATTR_REPLACE` is
3240-
given and the attribute does not exist, ``EEXISTS`` will be raised.
3240+
given and the attribute does not exist, ``ENODATA`` will be raised.
32413241
If :data:`XATTR_CREATE` is given and the attribute already exists, the
3242-
attribute will not be created and ``ENODATA`` will be raised.
3242+
attribute will not be created and ``EEXISTS`` will be raised.
32433243

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

0 commit comments

Comments
 (0)