From e0a2b72e61a474dceb948be57cb2983f70ab07fb Mon Sep 17 00:00:00 2001 From: "Martin v. Löwis" Date: Sun, 10 May 2009 08:08:56 +0000 Subject: Rename the surrogates error handler to surrogatepass. --- 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 7e3ff8a07f0..cd6b7f0f60c 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -751,7 +751,7 @@ PyObject *PyCodec_BackslashReplaceErrors(PyObject *exc) /* This handler is declared static until someone demonstrates a need to call it directly. */ static PyObject * -PyCodec_SurrogateErrors(PyObject *exc) +PyCodec_SurrogatePassErrors(PyObject *exc) { PyObject *restuple; PyObject *object; @@ -935,9 +935,9 @@ static PyObject *backslashreplace_errors(PyObject *self, PyObject *exc) return PyCodec_BackslashReplaceErrors(exc); } -static PyObject *surrogates_errors(PyObject *self, PyObject *exc) +static PyObject *surrogatepass_errors(PyObject *self, PyObject *exc) { - return PyCodec_SurrogateErrors(exc); + return PyCodec_SurrogatePassErrors(exc); } static PyObject *utf8b_errors(PyObject *self, PyObject *exc) @@ -993,10 +993,10 @@ static int _PyCodecRegistry_Init(void) } }, { - "surrogates", + "surrogatepass", { - "surrogates", - surrogates_errors, + "surrogatepass", + surrogatepass_errors, METH_O } }, -- cgit v1.2.3