From e0a2b72e61a474dceb948be57cb2983f70ab07fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 10 May 2009 08:08:56 +0000 Subject: Rename the surrogates error handler to surrogatepass. --- Python/marshal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/marshal.c') 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; -- cgit v1.2.1