mirror of https://github.com/python/cpython.git
backport r73430
This commit is contained in:
parent
f81ff989d6
commit
9f7baec574
|
@ -650,14 +650,6 @@ stringio_writable(stringio *self, PyObject *args)
|
||||||
Py_RETURN_TRUE;
|
Py_RETURN_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
|
||||||
stringio_buffer(stringio *self, void *context)
|
|
||||||
{
|
|
||||||
PyErr_SetString(_PyIO_unsupported_operation,
|
|
||||||
"buffer attribute is unsupported on type StringIO");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
stringio_closed(stringio *self, void *context)
|
stringio_closed(stringio *self, void *context)
|
||||||
{
|
{
|
||||||
|
@ -708,7 +700,6 @@ static PyGetSetDef stringio_getset[] = {
|
||||||
Hopefully, a better solution, than adding these pseudo-attributes,
|
Hopefully, a better solution, than adding these pseudo-attributes,
|
||||||
will be found.
|
will be found.
|
||||||
*/
|
*/
|
||||||
{"buffer", (getter)stringio_buffer, NULL, NULL},
|
|
||||||
{"line_buffering", (getter)stringio_line_buffering, NULL, NULL},
|
{"line_buffering", (getter)stringio_line_buffering, NULL, NULL},
|
||||||
{NULL}
|
{NULL}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue