Mercurial > cpython-lru_cache-weakref
diff Python/codecs.c @ 53965:fbcdae3e0ca1
Rename the surrogates error handler to surrogatepass.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sun, 10 May 2009 08:08:56 +0000 |
| parents | ac209f132b17 |
| children | 7c29bfbfd352 |
line wrap: on
line diff
--- a/Python/codecs.c Sat May 09 19:44:56 2009 +0000 +++ b/Python/codecs.c Sun May 10 08:08:56 2009 +0000 @@ -751,7 +751,7 @@ /* 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 @@ 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 @@ } }, { - "surrogates", + "surrogatepass", { - "surrogates", - surrogates_errors, + "surrogatepass", + surrogatepass_errors, METH_O } },
