Skip to content

Commit b82d5e1

Browse files
committed
Merged revisions 84438 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84438 | antoine.pitrou | 2010-09-02 21:48:07 +0200 (jeu., 02 sept. 2010) | 3 lines BytesIO.getvalue() and StringIO.getvalue() are METH_NOARGS. ........
1 parent 2f6bd27 commit b82d5e1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_io/bytesio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ static struct PyMethodDef bytesio_methods[] = {
704704
{"readline", (PyCFunction)bytesio_readline, METH_VARARGS, readline_doc},
705705
{"readlines", (PyCFunction)bytesio_readlines, METH_VARARGS, readlines_doc},
706706
{"read", (PyCFunction)bytesio_read, METH_VARARGS, read_doc},
707-
{"getvalue", (PyCFunction)bytesio_getvalue, METH_VARARGS, getval_doc},
707+
{"getvalue", (PyCFunction)bytesio_getvalue, METH_NOARGS, getval_doc},
708708
{"seek", (PyCFunction)bytesio_seek, METH_VARARGS, seek_doc},
709709
{"truncate", (PyCFunction)bytesio_truncate, METH_VARARGS, truncate_doc},
710710
{NULL, NULL} /* sentinel */

Modules/_io/stringio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ stringio_newlines(stringio *self, void *context)
698698

699699
static struct PyMethodDef stringio_methods[] = {
700700
{"close", (PyCFunction)stringio_close, METH_NOARGS, stringio_close_doc},
701-
{"getvalue", (PyCFunction)stringio_getvalue, METH_VARARGS, stringio_getvalue_doc},
701+
{"getvalue", (PyCFunction)stringio_getvalue, METH_NOARGS, stringio_getvalue_doc},
702702
{"read", (PyCFunction)stringio_read, METH_VARARGS, stringio_read_doc},
703703
{"readline", (PyCFunction)stringio_readline, METH_VARARGS, stringio_readline_doc},
704704
{"tell", (PyCFunction)stringio_tell, METH_NOARGS, stringio_tell_doc},

0 commit comments

Comments
 (0)