diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-24 00:40:51 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-24 00:40:51 +0300 |
commit | fb2b5bbc6a941ec46c28262cce7d55f4bea2658e (patch) | |
tree | d32151221a57afe4754ceaa913b63d7a53ca32a4 /Modules/_io/clinic/bytesio.c.h | |
parent | 965866d24a9ec4aa964c77e1c604c239dd618726 (diff) | |
download | cpython-fb2b5bbc6a941ec46c28262cce7d55f4bea2658e.tar.gz |
Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at the
same line as function name.
Diffstat (limited to 'Modules/_io/clinic/bytesio.c.h')
-rw-r--r-- | Modules/_io/clinic/bytesio.c.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Modules/_io/clinic/bytesio.c.h b/Modules/_io/clinic/bytesio.c.h index 695c46a7b3..1ab1d65a65 100644 --- a/Modules/_io/clinic/bytesio.c.h +++ b/Modules/_io/clinic/bytesio.c.h @@ -276,9 +276,7 @@ _io_BytesIO_readinto(bytesio *self, PyObject *arg) PyObject *return_value = NULL; Py_buffer buffer = {NULL, NULL}; - if (!PyArg_Parse(arg, - "w*:readinto", - &buffer)) + if (!PyArg_Parse(arg, "w*:readinto", &buffer)) goto exit; return_value = _io_BytesIO_readinto_impl(self, &buffer); @@ -346,8 +344,7 @@ _io_BytesIO_seek(bytesio *self, PyObject *args) Py_ssize_t pos; int whence = 0; - if (!PyArg_ParseTuple(args, - "n|i:seek", + if (!PyArg_ParseTuple(args, "n|i:seek", &pos, &whence)) goto exit; return_value = _io_BytesIO_seek_impl(self, pos, whence); @@ -414,8 +411,7 @@ _io_BytesIO___init__(PyObject *self, PyObject *args, PyObject *kwargs) static char *_keywords[] = {"initial_bytes", NULL}; PyObject *initvalue = NULL; - if (!PyArg_ParseTupleAndKeywords(args, kwargs, - "|O:BytesIO", _keywords, + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O:BytesIO", _keywords, &initvalue)) goto exit; return_value = _io_BytesIO___init___impl((bytesio *)self, initvalue); @@ -423,4 +419,4 @@ _io_BytesIO___init__(PyObject *self, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=e22697ada514f4eb input=a9049054013a1b77]*/ +/*[clinic end generated code: output=500ccc149587fac4 input=a9049054013a1b77]*/ |