stringio doesn't have an encoding

This commit is contained in:
Benjamin Peterson 2009-03-21 03:08:31 +00:00
parent 16f966ee26
commit b487e63282
3 changed files with 6 additions and 2 deletions

View file

@ -665,7 +665,7 @@ stringio_encoding(StringIOObject *self, void *context)
{
CHECK_INITIALIZED(self);
CHECK_CLOSED(self);
return PyUnicode_FromString("utf-8");
Py_RETURN_NONE;
}
static PyObject *