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

@ -1560,9 +1560,9 @@ Return a new XML parser object.
[clinic start generated code]*/
static PyObject *
pyexpat_ParserCreate_impl(PyModuleDef *module, const char *encoding,
pyexpat_ParserCreate_impl(PyObject *module, const char *encoding,
const char *namespace_separator, PyObject *intern)
/*[clinic end generated code: output=81fccd233e1743a8 input=23d29704acad385d]*/
/*[clinic end generated code: output=295c0cf01ab1146c input=23d29704acad385d]*/
{
PyObject *result;
int intern_decref = 0;
@ -1606,8 +1606,8 @@ Returns string error for given number.
[clinic start generated code]*/
static PyObject *
pyexpat_ErrorString_impl(PyModuleDef *module, long code)
/*[clinic end generated code: output=d87668108b6868e5 input=cc67de010d9e62b3]*/
pyexpat_ErrorString_impl(PyObject *module, long code)
/*[clinic end generated code: output=2feae50d166f2174 input=cc67de010d9e62b3]*/
{
return Py_BuildValue("z", XML_ErrorString((int)code));
}