diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2015-05-20 21:50:59 +0200 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2015-05-20 21:50:59 +0200 |
| commit | 45d61561541b35d9c8757b9cc87974edc73f8649 (patch) | |
| tree | affc0dd05a3ad405cb07df340e63399c93561225 /Modules/_io | |
| parent | 60335855f0388109f9fe92e6aa54ddb4e8723034 (diff) | |
| download | cpython-git-45d61561541b35d9c8757b9cc87974edc73f8649.tar.gz | |
Issue #9858: Add missing method stubs to _io.RawIOBase. Patch by Laura Rupprecht.
Diffstat (limited to 'Modules/_io')
| -rw-r--r-- | Modules/_io/iobase.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Modules/_io/iobase.c b/Modules/_io/iobase.c index 79d716a98a..025007e40d 100644 --- a/Modules/_io/iobase.c +++ b/Modules/_io/iobase.c @@ -952,9 +952,25 @@ _io__RawIOBase_readall_impl(PyObject *self) return result; } +static PyObject * +rawiobase_readinto(PyObject *self, PyObject *args) +{ + PyErr_SetNone(PyExc_NotImplementedError); + return NULL; +} + +static PyObject * +rawiobase_write(PyObject *self, PyObject *args) +{ + PyErr_SetNone(PyExc_NotImplementedError); + return NULL; +} + static PyMethodDef rawiobase_methods[] = { _IO__RAWIOBASE_READ_METHODDEF _IO__RAWIOBASE_READALL_METHODDEF + {"readinto", rawiobase_readinto, METH_VARARGS}, + {"write", rawiobase_write, METH_VARARGS}, {NULL, NULL} }; |
