mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)
(cherry picked from commit 3635388f52
)
Co-authored-by: Max Bernstein <tekknolagi@users.noreply.github.com>
This commit is contained in:
parent
0fbddb14dc
commit
6a2aa4994e
3 changed files with 16 additions and 1 deletions
|
@ -8160,7 +8160,7 @@ charmap_decode_mapping(const char *s,
|
|||
goto Undefined;
|
||||
if (value < 0 || value > MAX_UNICODE) {
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"character mapping must be in range(0x%lx)",
|
||||
"character mapping must be in range(0x%x)",
|
||||
(unsigned long)MAX_UNICODE + 1);
|
||||
goto onError;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue