summaryrefslogtreecommitdiff
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-05-26 13:28:38 +0000
committerChristian Heimes <christian@cheimes.de>2008-05-26 13:28:38 +0000
commitb37744af205715d70800c424df04b7da36923603 (patch)
tree182c4e69a9afdd2ac164b3b00961ba273f41190d /Python/codecs.c
parent7f6f3da7105c7fc7d0d29f8ccb30c65edeaddb65 (diff)
downloadcpython-b37744af205715d70800c424df04b7da36923603.tar.gz
Renamed PyString to PyBytes
Diffstat (limited to 'Python/codecs.c')
-rw-r--r--Python/codecs.c4
1 files changed, 2 insertions, 2 deletions
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,