summaryrefslogtreecommitdiff
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-05-10 08:15:24 +0000
committerMartin v. Löwis <martin@v.loewis.de>2009-05-10 08:15:24 +0000
commitea1a5ce2a56031861896e63e2b735016c732b476 (patch)
tree6942371ee4d3e327d56ed944f42c9fbf255315a6 /Python/codecs.c
parent965f99813bd8107b554bb2aac584e0de145ac354 (diff)
downloadcpython-ea1a5ce2a56031861896e63e2b735016c732b476.tar.gz
Rename utf8b error handler to surrogateescape.
Diffstat (limited to 'Python/codecs.c')
-rw-r--r--Python/codecs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index cd6b7f0f60..d1915f181d 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
}
}