]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport r73430
authorBenjamin Peterson <benjamin@python.org>
Sun, 14 Jun 2009 22:36:48 +0000 (22:36 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 14 Jun 2009 22:36:48 +0000 (22:36 +0000)
Modules/_io/stringio.c

index b602ee83ce0b6de3960510698552c08fa02db5a2..ddb081df7229319abafffefdaa7373c25c1adbc9 100644 (file)
@@ -650,14 +650,6 @@ stringio_writable(stringio *self, PyObject *args)
     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 *
 stringio_closed(stringio *self, void *context)
 {
@@ -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}
 };