summaryrefslogtreecommitdiff
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-05-10 08:08:56 +0000
committerMartin v. Löwis <martin@v.loewis.de>2009-05-10 08:08:56 +0000
commit965f99813bd8107b554bb2aac584e0de145ac354 (patch)
tree8573a178906ef4ad552b1a9719c965d3cd5e5982 /Python/codecs.c
parent90ef04c6a034ac2c16b584be9814ce2981ad68fc (diff)
downloadcpython-965f99813bd8107b554bb2aac584e0de145ac354.tar.gz
Rename the surrogates error handler to surrogatepass.
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 7e3ff8a07f..cd6b7f0f60 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
}
},