From 43c57785d3319249c03c3fa46c9df42a8ccd3e52 Mon Sep 17 00:00:00 2001 From: "Martin v. Löwis" Date: Sun, 10 May 2009 08:15:24 +0000 Subject: Rename utf8b error handler to surrogateescape. --- Python/codecs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Python/codecs.c') diff --git a/Python/codecs.c b/Python/codecs.c index cd6b7f0f60c..d1915f181d1 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -830,7 +830,7 @@ PyCodec_SurrogatePassErrors(PyObject *exc) } static PyObject * -PyCodec_UTF8bErrors(PyObject *exc) +PyCodec_SurrogateEscapeErrors(PyObject *exc) { PyObject *restuple; PyObject *object; @@ -940,9 +940,9 @@ static PyObject *surrogatepass_errors(PyObject *self, PyObject *exc) 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 @@ static int _PyCodecRegistry_Init(void) } }, { - "utf8b", + "surrogateescape", { - "utf8b", - utf8b_errors, + "surrogateescape", + surrogateescape_errors, METH_O } } -- cgit v1.2.3