summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-14 22:36:48 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-06-14 22:36:48 (GMT)
commit9f7baec5748e585c7812ff8e36c55b35ab044a90 (patch)
tree5664cf556e88c85d635be924cc08f868b1310131
parentf81ff989d6a3e237f2a14edc327451abeaa70011 (diff)
downloadcpython-9f7baec5748e585c7812ff8e36c55b35ab044a90.zip
cpython-9f7baec5748e585c7812ff8e36c55b35ab044a90.tar.gz
cpython-9f7baec5748e585c7812ff8e36c55b35ab044a90.tar.bz2
backport r73430
-rw-r--r--Modules/_io/stringio.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c
index b602ee8..ddb081d 100644
--- a/Modules/_io/stringio.c
+++ b/Modules/_io/stringio.c
@@ -651,14 +651,6 @@ stringio_writable(stringio *self, PyObject *args)
}
static PyObject *
-stringio_buffer(stringio *self, void *context)
-{
- PyErr_SetString(_PyIO_unsupported_operation,
- "buffer attribute is unsupported on type StringIO");
- return NULL;
-}
-
-static PyObject *
stringio_closed(stringio *self, void *context)
{
CHECK_INITIALIZED(self);
@@ -708,7 +700,6 @@ static PyGetSetDef stringio_getset[] = {
Hopefully, a better solution, than adding these pseudo-attributes,
will be found.
*/
- {"buffer", (getter)stringio_buffer, NULL, NULL},
{"line_buffering", (getter)stringio_line_buffering, NULL, NULL},
{NULL}
};