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>
.. 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