summaryrefslogtreecommitdiff
path: root/Python/marshal.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/marshal.c
parent90ef04c6a034ac2c16b584be9814ce2981ad68fc (diff)
downloadcpython-965f99813bd8107b554bb2aac584e0de145ac354.tar.gz
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 4e9c129463..19d445aec4 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;