Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 12909:be36f103a953 legacy-trunk
Marc-Andre Lemburg <mal@lemburg.com>:
Fixed a typo and removed a debug printf(). Thanks to Finn Bock
for finding these.
| author | Marc-André Lemburg <mal@egenix.com> |
|---|---|
| date | Sat, 10 Jun 2000 09:32:51 +0000 |
| parents | 98eb3059ae76 |
| children | 2d0b99778edf |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Sat Jun 10 04:22:57 2000 +0000 +++ b/Objects/unicodeobject.c Sat Jun 10 09:32:51 2000 +0000 @@ -732,7 +732,6 @@ /* 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 @@ 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; }
