summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-12-29 12:42:05 (GMT)
committerGitHub <noreply@github.com>2020-12-29 12:42:05 (GMT)
commit70ced2dd27ee59abee9af6926e9ce7d93f06f885 (patch)
treeea66793bc869d82a712060e996c5e2e74176bca8 /Doc/library
parent8f9313c83f74ff662985085cd5e7a8e4b3d8df3b (diff)
downloadcpython-70ced2dd27ee59abee9af6926e9ce7d93f06f885.zip
cpython-70ced2dd27ee59abee9af6926e9ce7d93f06f885.tar.gz
cpython-70ced2dd27ee59abee9af6926e9ce7d93f06f885.tar.bz2
bpo-42700: Swap descriptions in pyexpat.errors (GH-23876)
The descriptions of the `codes` and `messages` dictionaries in `xml.parsers.expat.errors` were swapped, and this commit swaps them back. For example, `codes` maps string descriptions of errors to numeric error codes, not the other way around. (cherry picked from commit 84402eb11086f97d31164aaa23e7238da3464f41) Co-authored-by: Michael Wayne Goodman <goodman.m.w@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/pyexpat.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst
index e43b9ae..034e579 100644
--- a/Doc/library/pyexpat.rst
+++ b/Doc/library/pyexpat.rst
@@ -665,14 +665,14 @@ The ``errors`` module has the following attributes:
.. data:: codes
- A dictionary mapping numeric error codes to their string descriptions.
+ A dictionary mapping string descriptions to their error codes.
.. versionadded:: 3.2
.. data:: messages
- A dictionary mapping string descriptions to their error codes.
+ A dictionary mapping numeric error codes to their string descriptions.
.. versionadded:: 3.2