summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-01-18 02:55:40 (GMT)
committerGitHub <noreply@github.com>2024-01-18 02:55:40 (GMT)
commit87198f6c2377a52ee7ec779b7f85daa8deef7f02 (patch)
tree63c76b350d0b7f23e7756185be4c7e79a00c1983
parentf8fc8534c4abd384160b3b03a253bb0a30e6ba68 (diff)
downloadcpython-87198f6c2377a52ee7ec779b7f85daa8deef7f02.zip
cpython-87198f6c2377a52ee7ec779b7f85daa8deef7f02.tar.gz
cpython-87198f6c2377a52ee7ec779b7f85daa8deef7f02.tar.bz2
[3.12] gh-114211: Update EmailMessage doc about ordered keys (GH-114224) (#114225)
Ordered keys are no longer unlike 'real dict's. (cherry picked from commit 8cda72037b262772399b2b7fc36dee9340d74fd6) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
-rw-r--r--Doc/library/email.message.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/email.message.rst b/Doc/library/email.message.rst
index f58d93d..adea067 100644
--- a/Doc/library/email.message.rst
+++ b/Doc/library/email.message.rst
@@ -40,9 +40,9 @@ over the object tree.
The :class:`EmailMessage` dictionary-like interface is indexed by the header
names, which must be ASCII values. The values of the dictionary are strings
with some extra methods. Headers are stored and returned in case-preserving
-form, but field names are matched case-insensitively. Unlike a real dict,
-there is an ordering to the keys, and there can be duplicate keys. Additional
-methods are provided for working with headers that have duplicate keys.
+form, but field names are matched case-insensitively. The keys are ordered,
+but unlike a real dict, there can be duplicates. Addtional methods are
+provided for working with headers that have duplicate keys.
The *payload* is either a string or bytes object, in the case of simple message
objects, or a list of :class:`EmailMessage` objects, for MIME container