diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-02 19:48:07 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-02 19:48:07 (GMT) |
commit | d5c3f6c839403605d0e2c481d9b7d4e7b9aa4694 (patch) | |
tree | 706ee289a99ef35cb83e65239a33efe923090fa1 /Modules | |
parent | 331722d411b86fe8dbe64072ca5ca4f06b06409f (diff) | |
download | cpython-d5c3f6c839403605d0e2c481d9b7d4e7b9aa4694.zip cpython-d5c3f6c839403605d0e2c481d9b7d4e7b9aa4694.tar.gz cpython-d5c3f6c839403605d0e2c481d9b7d4e7b9aa4694.tar.bz2 |
BytesIO.getvalue() and StringIO.getvalue() are METH_NOARGS.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_io/bytesio.c | 2 | ||||
-rw-r--r-- | Modules/_io/stringio.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_io/bytesio.c b/Modules/_io/bytesio.c index 4e78cd5..3ef9e2e 100644 --- a/Modules/_io/bytesio.c +++ b/Modules/_io/bytesio.c @@ -818,7 +818,7 @@ static struct PyMethodDef bytesio_methods[] = { {"readline", (PyCFunction)bytesio_readline, METH_VARARGS, readline_doc}, {"readlines", (PyCFunction)bytesio_readlines, METH_VARARGS, readlines_doc}, {"read", (PyCFunction)bytesio_read, METH_VARARGS, read_doc}, - {"getvalue", (PyCFunction)bytesio_getvalue, METH_VARARGS, getval_doc}, + {"getvalue", (PyCFunction)bytesio_getvalue, METH_NOARGS, getval_doc}, {"seek", (PyCFunction)bytesio_seek, METH_VARARGS, seek_doc}, {"truncate", (PyCFunction)bytesio_truncate, METH_VARARGS, truncate_doc}, {"__getstate__", (PyCFunction)bytesio_getstate, METH_NOARGS, NULL}, diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c index 13e3b58..5bb80cb 100644 --- a/Modules/_io/stringio.c +++ b/Modules/_io/stringio.c @@ -827,7 +827,7 @@ stringio_newlines(stringio *self, void *context) static struct PyMethodDef stringio_methods[] = { {"close", (PyCFunction)stringio_close, METH_NOARGS, stringio_close_doc}, - {"getvalue", (PyCFunction)stringio_getvalue, METH_VARARGS, stringio_getvalue_doc}, + {"getvalue", (PyCFunction)stringio_getvalue, METH_NOARGS, stringio_getvalue_doc}, {"read", (PyCFunction)stringio_read, METH_VARARGS, stringio_read_doc}, {"readline", (PyCFunction)stringio_readline, METH_VARARGS, stringio_readline_doc}, {"tell", (PyCFunction)stringio_tell, METH_NOARGS, stringio_tell_doc}, |