Issue #19976: Argument Clinic METH_NOARGS functions now always

take two parameters.
This commit is contained in:
Larry Hastings 2014-01-04 11:09:09 -08:00
parent 583a93943c
commit 3cceb38486
5 changed files with 150 additions and 31 deletions

View file

@ -1045,8 +1045,21 @@ PyDoc_STRVAR(zlib_Compress_copy__doc__,
{"copy", (PyCFunction)zlib_Compress_copy, METH_NOARGS, zlib_Compress_copy__doc__},
static PyObject *
zlib_Compress_copy(compobject *self)
/*[clinic checksum: 0b37c07f8f27deb7d4769951fbecf600a1006ef8]*/
zlib_Compress_copy_impl(compobject *self);
static PyObject *
zlib_Compress_copy(PyObject *self, PyObject *Py_UNUSED(ignored))
{
PyObject *return_value = NULL;
return_value = zlib_Compress_copy_impl((compobject *)self);
return return_value;
}
static PyObject *
zlib_Compress_copy_impl(compobject *self)
/*[clinic checksum: 2f454ee15be3bc53cfb4e845c3f891f68be4c8e4]*/
{
compobject *retval = NULL;
int err;