Mercurial > cpython-lru_cache-weakref
diff Modules/_io/stringio.c @ 64380:55db60fcab54
BytesIO.getvalue() and StringIO.getvalue() are METH_NOARGS.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Thu, 02 Sep 2010 19:48:07 +0000 |
| parents | 311db7a68a82 |
| children | 3c9232a684ae |
line wrap: on
line diff
--- a/Modules/_io/stringio.c Thu Sep 02 18:44:16 2010 +0000 +++ b/Modules/_io/stringio.c Thu Sep 02 19:48:07 2010 +0000 @@ -827,7 +827,7 @@ 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},
