[Python-checkins] Fix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25794)
ericvsmith
webhook-mailer at python.org
Sat May 1 16:56:09 EDT 2021
https://github.com/python/cpython/commit/10a62bbecc38b1648fc64f17712c9f3f3ed48d9b
commit: 10a62bbecc38b1648fc64f17712c9f3f3ed48d9b
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ericvsmith <ericvsmith at users.noreply.github.com>
date: 2021-05-01T16:56:05-04:00
summary:
Fix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25794)
(cherry picked from commit 779232413a367cd3357482e675a5518de102a90e)
Co-authored-by: Shreyash Sharma <shreyash.sharma at philips.com>
Co-authored-by: Shreyash Sharma <shreyash.sharma at philips.com>
files:
M Doc/library/os.rst
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 0c6f0b86cd74f..1198c4afb8386 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 <path_fd>` and
:ref:`not following symlinks <follow_symlinks>`.
More information about the Python-checkins
mailing list