diff options
author | Guido van Rossum <guido@python.org> | 2007-10-24 21:13:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-24 21:13:09 (GMT) |
commit | 5a2f7e60da093dcdea5d9e508f875285020019a6 (patch) | |
tree | f87daca29a3eb9fe86f99671175372078b1f4275 /Objects | |
parent | 52ddaefb6bab1a74ecffe8519c02735794ebfbe1 (diff) | |
download | cpython-5a2f7e60da093dcdea5d9e508f875285020019a6.zip cpython-5a2f7e60da093dcdea5d9e508f875285020019a6.tar.gz cpython-5a2f7e60da093dcdea5d9e508f875285020019a6.tar.bz2 |
Fix a broken format in a PyErr_Format() call: %lx is not supported.
(It's still technically broken since the va_args code assumes %x is
an int while we're passing a long, but that's mostly theoretical,
and it's done all over the place.)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 61a2320..a24cdba 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -4703,7 +4703,7 @@ int charmaptranslate_lookup(Py_UNICODE c, PyObject *mapping, PyObject **result) long max = PyUnicode_GetMax(); if (value < 0 || value > max) { PyErr_Format(PyExc_TypeError, - "character mapping must be in range(0x%lx)", max+1); + "character mapping must be in range(0x%x)", max+1); Py_DECREF(x); return -1; } |