From 0336ccf9102a190f2c90f6b9879576587f2bd025 Mon Sep 17 00:00:00 2001 From: Shreyash Sharma Date: Sun, 2 May 2021 02:24:39 +0530 Subject: [PATCH] Fix exceptions mentioned in os.setxattr() docs (GH-25742) (cherry picked from commit 779232413a367cd3357482e675a5518de102a90e) Co-authored-by: Shreyash Sharma --- Doc/library/os.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 0c6f0b86cd74fb..1198c4afb8386b 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -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 ` and :ref:`not following symlinks `.