diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-06-14 18:32:19 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-06-14 18:32:19 (GMT) |
commit | 6a38ceda034df6b0be6ed41edbdc28f76e7e7805 (patch) | |
tree | 558b79f919de865e9380d86918f8e2eea7bd3576 /Modules/_io | |
parent | 2a8b54d29cc943e7b8bc493d5500463b0e0af5ff (diff) | |
download | cpython-6a38ceda034df6b0be6ed41edbdc28f76e7e7805.zip cpython-6a38ceda034df6b0be6ed41edbdc28f76e7e7805.tar.gz cpython-6a38ceda034df6b0be6ed41edbdc28f76e7e7805.tar.bz2 |
just throw a normal AttributeError for no buffer attribute
Diffstat (limited to 'Modules/_io')
-rw-r--r-- | Modules/_io/stringio.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c index 57dacf9..84a15be 100644 --- a/Modules/_io/stringio.c +++ b/Modules/_io/stringio.c @@ -646,14 +646,6 @@ stringio_writable(stringio *self, PyObject *args) } static PyObject * -stringio_buffer(stringio *self, void *context) -{ - PyErr_SetString(IO_STATE->unsupported_operation, - "buffer attribute is unsupported on type StringIO"); - return NULL; -} - -static PyObject * stringio_closed(stringio *self, void *context) { CHECK_INITIALIZED(self); @@ -703,7 +695,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} }; |