[Python-checkins] r73433 - python/trunk/Modules/_io/stringio.c

benjamin.peterson python-checkins at python.org
Mon Jun 15 00:36:48 CEST 2009


Author: benjamin.peterson
Date: Mon Jun 15 00:36:48 2009
New Revision: 73433

Log:
backport r73430

Modified:
   python/trunk/Modules/_io/stringio.c

Modified: python/trunk/Modules/_io/stringio.c
==============================================================================
--- python/trunk/Modules/_io/stringio.c	(original)
+++ python/trunk/Modules/_io/stringio.c	Mon Jun 15 00:36:48 2009
@@ -651,14 +651,6 @@
 }
 
 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 @@
         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}
 };


More information about the Python-checkins mailing list