commit | 3635388f52b42e5280229104747962117104c453 | [log] [tgz] |
---|---|---|
author | Max Bernstein <tekknolagi@users.noreply.github.com> | Sat Oct 17 13:38:21 2020 -0700 |
committer | GitHub <noreply@github.com> | Sat Oct 17 23:38:21 2020 +0300 |
tree | c56705fffca5862af09fd72974e66b439491d813 | |
parent | 975d10a4f8f5d99b01d02fc5f99305a86827f28e [diff] [blame] |
bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 01e5c72..c4e73eb 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -8304,7 +8304,7 @@ 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; }