Mercurial > cpython-lru_cache-weakref
diff Python/codecs.c @ 53966:7c29bfbfd352
Rename utf8b error handler to surrogateescape.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sun, 10 May 2009 08:15:24 +0000 |
| parents | fbcdae3e0ca1 |
| children | b085fd0611de |
line wrap: on
line diff
--- a/Python/codecs.c Sun May 10 08:08:56 2009 +0000 +++ b/Python/codecs.c Sun May 10 08:15:24 2009 +0000 @@ -830,7 +830,7 @@ } static PyObject * -PyCodec_UTF8bErrors(PyObject *exc) +PyCodec_SurrogateEscapeErrors(PyObject *exc) { PyObject *restuple; PyObject *object; @@ -940,9 +940,9 @@ return PyCodec_SurrogatePassErrors(exc); } -static PyObject *utf8b_errors(PyObject *self, PyObject *exc) +static PyObject *surrogateescape_errors(PyObject *self, PyObject *exc) { - return PyCodec_UTF8bErrors(exc); + return PyCodec_SurrogateEscapeErrors(exc); } static int _PyCodecRegistry_Init(void) @@ -1001,10 +1001,10 @@ } }, { - "utf8b", + "surrogateescape", { - "utf8b", - utf8b_errors, + "surrogateescape", + surrogateescape_errors, METH_O } }
