Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0cb42d

Browse files
committed
Issue 26243: Forgot to update zlib doc strings in Argument Clinic
1 parent 1fe0d13 commit b0cb42d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/clinic/zlibmodule.c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PyDoc_STRVAR(zlib_compress__doc__,
1111
" data\n"
1212
" Binary data to be compressed.\n"
1313
" level\n"
14-
" Compression level, in 0-9.");
14+
" Compression level, in 0-9 or -1.");
1515

1616
#define ZLIB_COMPRESS_METHODDEF \
1717
{"compress", (PyCFunction)zlib_compress, METH_VARARGS|METH_KEYWORDS, zlib_compress__doc__},
@@ -440,4 +440,4 @@ zlib_crc32(PyModuleDef *module, PyObject *args)
440440
#ifndef ZLIB_COMPRESS_COPY_METHODDEF
441441
#define ZLIB_COMPRESS_COPY_METHODDEF
442442
#endif /* !defined(ZLIB_COMPRESS_COPY_METHODDEF) */
443-
/*[clinic end generated code: output=3c96b58b923c1273 input=a9049054013a1b77]*/
443+
/*[clinic end generated code: output=e6f3b79e051ecc35 input=a9049054013a1b77]*/

Modules/zlibmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Returns a bytes object containing compressed data.
147147

148148
static PyObject *
149149
zlib_compress_impl(PyModuleDef *module, Py_buffer *data, int level)
150-
/*[clinic end generated code: output=1b97589132b203b4 input=671c615a4b2267da]*/
150+
/*[clinic end generated code: output=1b97589132b203b4 input=abed30f4fa14e213]*/
151151
{
152152
PyObject *ReturnVal = NULL;
153153
Byte *input, *output = NULL;

0 commit comments

Comments
 (0)