From: Benjamin Peterson Date: Sun, 14 Jun 2009 22:36:48 +0000 (+0000) Subject: backport r73430 X-Git-Tag: v2.7a1~948 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f7baec5748e585c7812ff8e36c55b35ab044a90;p=thirdparty%2FPython%2Fcpython.git backport r73430 --- diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c index b602ee83ce0b..ddb081df7229 100644 --- a/Modules/_io/stringio.c +++ b/Modules/_io/stringio.c @@ -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} };