summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-05-10 08:08:56 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2009-05-10 08:08:56 (GMT)
commite0a2b72e61a474dceb948be57cb2983f70ab07fb (patch)
treec3b566e210699b00932039c734bfeb74e24f06f9 /Python
parentcf7925dfc61d770c58153fd96170192e11cf8f39 (diff)
downloadcpython-e0a2b72e61a474dceb948be57cb2983f70ab07fb.zip
cpython-e0a2b72e61a474dceb948be57cb2983f70ab07fb.tar.gz
cpython-e0a2b72e61a474dceb948be57cb2983f70ab07fb.tar.bz2
Rename the surrogates error handler to surrogatepass.
Diffstat (limited to 'Python')
-rw-r--r--Python/codecs.c12
-rw-r--r--Python/marshal.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index 7e3ff8a..cd6b7f0 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
}
},
diff --git a/Python/marshal.c b/Python/marshal.c
index 4e9c129..19d445a 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -314,7 +314,7 @@ w_object(PyObject *v, WFILE *p)
PyObject *utf8;
utf8 = PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(v),
PyUnicode_GET_SIZE(v),
- "surrogates");
+ "surrogatepass");
if (utf8 == NULL) {
p->depth--;
p->error = WFERR_UNMARSHALLABLE;
@@ -809,7 +809,7 @@ r_object(RFILE *p)
retval = NULL;
break;
}
- v = PyUnicode_DecodeUTF8(buffer, n, "surrogates");
+ v = PyUnicode_DecodeUTF8(buffer, n, "surrogatepass");
PyMem_DEL(buffer);
retval = v;
break;