]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42700: Swap descriptions in pyexpat.errors (GH-23876)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 29 Dec 2020 12:55:33 +0000 (04:55 -0800)
committerGitHub <noreply@github.com>
Tue, 29 Dec 2020 12:55:33 +0000 (04:55 -0800)
commitcc7f745e80bc177dfc746b057e1c7656b78382e5
tree4eb5bcd6f1a223954d9e4872bc05cc69d37c4ec6
parentdf794406a8803e3d6062af8404d7564833f9af28
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>
Doc/library/pyexpat.rst