Issue #27332: Fixed the type of the first argument of module-level functions

generated by Argument Clinic.  Patch by Petr Viktorin.
This commit is contained in:
Serhiy Storchaka 2016-07-07 17:35:15 +03:00
parent b8a2f51ceb
commit 1a2b24f02d
71 changed files with 1814 additions and 1835 deletions

View file

@ -227,10 +227,10 @@ opened in a binary mode.
[clinic start generated code]*/
static PyObject *
_io_open_impl(PyModuleDef *module, PyObject *file, const char *mode,
_io_open_impl(PyObject *module, PyObject *file, const char *mode,
int buffering, const char *encoding, const char *errors,
const char *newline, int closefd, PyObject *opener)
/*[clinic end generated code: output=7615d0d746eb14d2 input=f4e1ca75223987bc]*/
/*[clinic end generated code: output=aefafc4ce2b46dc0 input=f4e1ca75223987bc]*/
{
unsigned i;

View file

@ -130,12 +130,12 @@ PyDoc_STRVAR(_io_open__doc__,
{"open", (PyCFunction)_io_open, METH_VARARGS|METH_KEYWORDS, _io_open__doc__},
static PyObject *
_io_open_impl(PyModuleDef *module, PyObject *file, const char *mode,
_io_open_impl(PyObject *module, PyObject *file, const char *mode,
int buffering, const char *encoding, const char *errors,
const char *newline, int closefd, PyObject *opener);
static PyObject *
_io_open(PyModuleDef *module, PyObject *args, PyObject *kwargs)
_io_open(PyObject *module, PyObject *args, PyObject *kwargs)
{
PyObject *return_value = NULL;
static char *_keywords[] = {"file", "mode", "buffering", "encoding", "errors", "newline", "closefd", "opener", NULL};
@ -156,4 +156,4 @@ _io_open(PyModuleDef *module, PyObject *args, PyObject *kwargs)
exit:
return return_value;
}
/*[clinic end generated code: output=97cdc09bf68a8064 input=a9049054013a1b77]*/
/*[clinic end generated code: output=bc2c003cb7daeafe input=a9049054013a1b77]*/