From fbc8b5ce9a3193fc3f7894c6776584fe5203d355 Mon Sep 17 00:00:00 2001 From: Shreyash Sharma Date: Fri, 30 Apr 2021 13:34:57 +0530 Subject: [PATCH] Mapping correct values in os.setxattr() docs --- 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 b4c2ca9d4f6606..6f9f3219481c2b 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -3478,9 +3478,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 :term:`filesystem encoding and error handler`. *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 `.