diff options
author | Marc-André Lemburg <mal@egenix.com> | 2000-06-10 09:32:51 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2000-06-10 09:32:51 (GMT) |
commit | 07ceb67d9cf675734568a0e3899e9a5716219dca (patch) | |
tree | 91dced7b1e8ab3acb8ee07e8d2476a78c37f6570 /Objects | |
parent | 1f2d4640b874940cae74c2b1549a6a1106e2a058 (diff) | |
download | cpython-07ceb67d9cf675734568a0e3899e9a5716219dca.zip cpython-07ceb67d9cf675734568a0e3899e9a5716219dca.tar.gz cpython-07ceb67d9cf675734568a0e3899e9a5716219dca.tar.bz2 |
Marc-Andre Lemburg <mal@lemburg.com>:
Fixed a typo and removed a debug printf(). Thanks to Finn Bock
for finding these.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 1ea83f6..eaa381b 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -732,7 +732,6 @@ PyObject *PyUnicode_EncodeUTF8(const Py_UNICODE *s, /* These byte ranges are reserved for UTF-16 surrogate bytes which the Python implementation currently does not support. */ - printf("code range problem: U+%04x\n", ch); if (utf8_encoding_error(&s, &p, errors, "unsupported code range")) goto onError; @@ -1734,7 +1733,7 @@ PyObject *PyUnicode_DecodeCharmap(const char *s, int value = PyInt_AS_LONG(x); if (value < 0 || value > 65535) { PyErr_SetString(PyExc_TypeError, - "character mapping must be in range(65336)"); + "character mapping must be in range(65536)"); Py_DECREF(x); goto onError; } |