summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
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/marshal.c
parentcf7925dfc61d770c58153fd96170192e11cf8f39 (diff)
downloadcpython-e0a2b72e61a474dceb948be57cb2983f70ab07fb.zip
cpython-e0a2b72e61a474dceb948be57cb2983f70ab07fb.tar.gz
cpython-e0a2b72e61a474dceb948be57cb2983f70ab07fb.tar.bz2
Rename the surrogates error handler to surrogatepass.
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c4
1 files changed, 2 insertions, 2 deletions
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;