summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-01 20:56:53 (GMT)
committerGitHub <noreply@github.com>2021-05-01 20:56:53 (GMT)
commitce081fbb41050ba772c0a752da7b4ec25565d7f1 (patch)
treec00b8265dbf3aa4125f1a65f18b4c524cb60208c
parent3519ac416df230d686fdec470352f25fcce4a54b (diff)
downloadcpython-ce081fbb41050ba772c0a752da7b4ec25565d7f1.zip
cpython-ce081fbb41050ba772c0a752da7b4ec25565d7f1.tar.gz
cpython-ce081fbb41050ba772c0a752da7b4ec25565d7f1.tar.bz2
Fix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25795)
(cherry picked from commit 779232413a367cd3357482e675a5518de102a90e) Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com> Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
-rw-r--r--Doc/library/os.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 719ea5b..d0a37a8 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -3237,9 +3237,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 <path_fd>` and
:ref:`not following symlinks <follow_symlinks>`.