summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMax Bernstein <tekknolagi@users.noreply.github.com>2020-10-17 20:38:21 (GMT)
committerGitHub <noreply@github.com>2020-10-17 20:38:21 (GMT)
commit3635388f52b42e5280229104747962117104c453 (patch)
treec56705fffca5862af09fd72974e66b439491d813 /Objects
parent975d10a4f8f5d99b01d02fc5f99305a86827f28e (diff)
downloadcpython-3635388f52b42e5280229104747962117104c453.zip
cpython-3635388f52b42e5280229104747962117104c453.tar.gz
cpython-3635388f52b42e5280229104747962117104c453.tar.bz2
bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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;
}