summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShreyash Sharma <shreyash.sharma@philips.com>2021-05-01 20:54:39 (GMT)
committerGitHub <noreply@github.com>2021-05-01 20:54:39 (GMT)
commit779232413a367cd3357482e675a5518de102a90e (patch)
treeba6998b862c82dee69756ed978d66fa98f587ce4
parent1ae05fdf2d0a4cf12e355ad74c437cbfa89c9b93 (diff)
downloadcpython-779232413a367cd3357482e675a5518de102a90e.zip
cpython-779232413a367cd3357482e675a5518de102a90e.tar.gz
cpython-779232413a367cd3357482e675a5518de102a90e.tar.bz2
Fix exceptions mentioned in os.setxattr() docs (GH-25742)
-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 b4c2ca9..6f9f321 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 <path_fd>` and
:ref:`not following symlinks <follow_symlinks>`.