Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 53962:13117728d086 | 53965:fbcdae3e0ca1 |
|---|---|
| 749 } | 749 } |
| 750 | 750 |
| 751 /* This handler is declared static until someone demonstrates | 751 /* This handler is declared static until someone demonstrates |
| 752 a need to call it directly. */ | 752 a need to call it directly. */ |
| 753 static PyObject * | 753 static PyObject * |
| 754 PyCodec_SurrogateErrors(PyObject *exc) | 754 PyCodec_SurrogatePassErrors(PyObject *exc) |
| 755 { | 755 { |
| 756 PyObject *restuple; | 756 PyObject *restuple; |
| 757 PyObject *object; | 757 PyObject *object; |
| 758 Py_ssize_t start; | 758 Py_ssize_t start; |
| 759 Py_ssize_t end; | 759 Py_ssize_t end; |
| 933 static PyObject *backslashreplace_errors(PyObject *self, PyObject *exc) | 933 static PyObject *backslashreplace_errors(PyObject *self, PyObject *exc) |
| 934 { | 934 { |
| 935 return PyCodec_BackslashReplaceErrors(exc); | 935 return PyCodec_BackslashReplaceErrors(exc); |
| 936 } | 936 } |
| 937 | 937 |
| 938 static PyObject *surrogates_errors(PyObject *self, PyObject *exc) | 938 static PyObject *surrogatepass_errors(PyObject *self, PyObject *exc) |
| 939 { | 939 { |
| 940 return PyCodec_SurrogateErrors(exc); | 940 return PyCodec_SurrogatePassErrors(exc); |
| 941 } | 941 } |
| 942 | 942 |
| 943 static PyObject *utf8b_errors(PyObject *self, PyObject *exc) | 943 static PyObject *utf8b_errors(PyObject *self, PyObject *exc) |
| 944 { | 944 { |
| 945 return PyCodec_UTF8bErrors(exc); | 945 return PyCodec_UTF8bErrors(exc); |
| 991 backslashreplace_errors, | 991 backslashreplace_errors, |
| 992 METH_O | 992 METH_O |
| 993 } | 993 } |
| 994 }, | 994 }, |
| 995 { | 995 { |
| 996 "surrogates", | 996 "surrogatepass", |
| 997 { | 997 { |
| 998 "surrogates", | 998 "surrogatepass", |
| 999 surrogates_errors, | 999 surrogatepass_errors, |
| 1000 METH_O | 1000 METH_O |
| 1001 } | 1001 } |
| 1002 }, | 1002 }, |
| 1003 { | 1003 { |
| 1004 "utf8b", | 1004 "utf8b", |
