diff options
author | Larry Hastings <larry@hastings.org> | 2014-01-04 19:09:09 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2014-01-04 19:09:09 (GMT) |
commit | 3cceb384861eeae1f164568a9ea30534fdf2c87c (patch) | |
tree | e46cf8291ab3f31367845b16b169ea8feed5c0a0 /Modules/zlibmodule.c | |
parent | 583a93943c0f090ac2699d7feb33e72bfed7323e (diff) | |
download | cpython-3cceb384861eeae1f164568a9ea30534fdf2c87c.zip cpython-3cceb384861eeae1f164568a9ea30534fdf2c87c.tar.gz cpython-3cceb384861eeae1f164568a9ea30534fdf2c87c.tar.bz2 |
Issue #19976: Argument Clinic METH_NOARGS functions now always
take two parameters.
Diffstat (limited to 'Modules/zlibmodule.c')
-rw-r--r-- | Modules/zlibmodule.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 28ed3cd..72137db 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -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; |