mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
Rename utf8b error handler to surrogateescape.
This commit is contained in:
parent
e0a2b72e61
commit
43c57785d3
9 changed files with 30 additions and 30 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue