summaryrefslogtreecommitdiffstats
path: root/Modules/_io/stringio.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-06 18:02:12 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-06-06 18:02:12 (GMT)
commit0926ad1f05f06233a7595b9f837cc3c5ee5fe46d (patch)
tree7bc723cd73aaaa3557b9da6d4e6ecc979aaa57ec /Modules/_io/stringio.c
parent3bbbf18a38ad2af62a090692acb6f1299baf9aba (diff)
downloadcpython-0926ad1f05f06233a7595b9f837cc3c5ee5fe46d.zip
cpython-0926ad1f05f06233a7595b9f837cc3c5ee5fe46d.tar.gz
cpython-0926ad1f05f06233a7595b9f837cc3c5ee5fe46d.tar.bz2
give the C implementation of TextIOWrapper the errors property #6217
Diffstat (limited to 'Modules/_io/stringio.c')
-rw-r--r--Modules/_io/stringio.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c
index 136f41d..a0d8a51 100644
--- a/Modules/_io/stringio.c
+++ b/Modules/_io/stringio.c
@@ -661,22 +661,6 @@ stringio_closed(StringIOObject *self, void *context)
}
static PyObject *
-stringio_encoding(StringIOObject *self, void *context)
-{
- CHECK_INITIALIZED(self);
- CHECK_CLOSED(self);
- Py_RETURN_NONE;
-}
-
-static PyObject *
-stringio_errors(StringIOObject *self, void *context)
-{
- CHECK_INITIALIZED(self);
- CHECK_CLOSED(self);
- return PyUnicode_FromString("strict");
-}
-
-static PyObject *
stringio_line_buffering(StringIOObject *self, void *context)
{
CHECK_INITIALIZED(self);
@@ -720,8 +704,6 @@ static PyGetSetDef stringio_getset[] = {
will be found.
*/
{"buffer", (getter)stringio_buffer, NULL, NULL},
- {"encoding", (getter)stringio_encoding, NULL, NULL},
- {"errors", (getter)stringio_errors, NULL, NULL},
{"line_buffering", (getter)stringio_line_buffering, NULL, NULL},
{NULL}
};