summaryrefslogtreecommitdiffstats
path: root/Doc/library/pyexpat.rst
diff options
context:
space:
mode:
authorMichael Wayne Goodman <goodman.m.w@gmail.com>2020-12-29 12:33:15 (GMT)
committerGitHub <noreply@github.com>2020-12-29 12:33:15 (GMT)
commit84402eb11086f97d31164aaa23e7238da3464f41 (patch)
treefb4b8ea274ba82b1fc777fb109ae67c27d034b40 /Doc/library/pyexpat.rst
parenta4258e8cd776ba655cc54ba54eaeffeddb0a267c (diff)
downloadcpython-84402eb11086f97d31164aaa23e7238da3464f41.zip
cpython-84402eb11086f97d31164aaa23e7238da3464f41.tar.gz
cpython-84402eb11086f97d31164aaa23e7238da3464f41.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.
Diffstat (limited to 'Doc/library/pyexpat.rst')
-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