aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>2020-10-17 23:16:52 -0700
committerGitHub <noreply@github.com>2020-10-18 09:16:52 +0300
commit400175ad91c1aa8abc6dfce108446e4210d0c157 (patch)
tree2f9c7d1d95cff1abba04f5b2aa9f76d9edceda99 /Objects
parentbpo-42011: Update documentation of logging.Filter.filter() (GH-22692) (GH-22724) (diff)
downloadcpython-400175ad91c1aa8abc6dfce108446e4210d0c157.tar.gz
cpython-400175ad91c1aa8abc6dfce108446e4210d0c157.tar.bz2
cpython-400175ad91c1aa8abc6dfce108446e4210d0c157.zip
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 01df54da005..a038e0d4c06 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -7998,7 +7998,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;
}