backport r73430
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 @@
 }
 
 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}
 };