summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>2020-10-18 06:00:18 (GMT)
committerGitHub <noreply@github.com>2020-10-18 06:00:18 (GMT)
commit6a2aa4994e99ae8e43011a0290646fde4724a003 (patch)
tree4f2a55ab3a160c5c8b2843fd0d9ec1a60c3739d7 /Objects
parent0fbddb14dc03f61738af01af88e7d8aa8df07336 (diff)
downloadcpython-6a2aa4994e99ae8e43011a0290646fde4724a003.zip
cpython-6a2aa4994e99ae8e43011a0290646fde4724a003.tar.gz
cpython-6a2aa4994e99ae8e43011a0290646fde4724a003.tar.bz2
bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)
(cherry picked from commit 3635388f52b42e5280229104747962117104c453) Co-authored-by: Max Bernstein <tekknolagi@users.noreply.github.com>
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 3c2383d..d5fbf15 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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;
}