From 72b710a59617ebe6dd1c41613d2c7eb81702efd9 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 26 May 2008 13:28:38 +0000 Subject: Renamed PyString to PyBytes --- Python/codecs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/codecs.c') diff --git a/Python/codecs.c b/Python/codecs.c index 554c1d2d05..33f0733e20 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -354,9 +354,9 @@ PyObject *PyCodec_Encode(PyObject *object, v = NULL; goto onError; } - v = PyString_FromStringAndSize(PyByteArray_AS_STRING(v), Py_SIZE(v)); + v = PyBytes_FromStringAndSize(PyByteArray_AS_STRING(v), Py_SIZE(v)); } - else if (PyString_Check(v)) + else if (PyBytes_Check(v)) Py_INCREF(v); else { PyErr_SetString(PyExc_TypeError, -- cgit v1.2.1