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

Skip to content

Commit 54c1391

Browse files
Issue #20489: Explicitly qualified expressions for default values in methods.
1 parent 2aa15d8 commit 54c1391

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Modules/clinic/zlibmodule.c.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ zlib_Decompress_decompress(compobject *self, PyObject *args)
245245
}
246246

247247
PyDoc_STRVAR(zlib_Compress_flush__doc__,
248-
"sig=($self, mode=Z_FINISH)\n"
248+
"sig=($self, mode=zlib.Z_FINISH)\n"
249249
"Return a bytes object containing any remaining compressed data.\n"
250250
"\n"
251251
" mode\n"
@@ -325,7 +325,7 @@ zlib_Decompress_copy(compobject *self, PyObject *Py_UNUSED(ignored))
325325
#endif /* !defined(ZLIB_DECOMPRESS_COPY_METHODDEF) */
326326

327327
PyDoc_STRVAR(zlib_Decompress_flush__doc__,
328-
"sig=($self, length=DEF_BUF_SIZE)\n"
328+
"sig=($self, length=zlib.DEF_BUF_SIZE)\n"
329329
"Return a bytes object containing any remaining decompressed data.\n"
330330
"\n"
331331
" length\n"
@@ -424,4 +424,4 @@ zlib_crc32(PyModuleDef *module, PyObject *args)
424424

425425
return return_value;
426426
}
427-
/*[clinic end generated code: output=21556008559f839c input=a9049054013a1b77]*/
427+
/*[clinic end generated code: output=67d3e81eafcfb982 input=a9049054013a1b77]*/

Modules/zlibmodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ zlib_Decompress_decompress_impl(compobject *self, Py_buffer *data, unsigned int
828828
/*[clinic input]
829829
zlib.Compress.flush
830830
831-
mode: int(c_default="Z_FINISH") = Z_FINISH
831+
mode: int(c_default="Z_FINISH") = zlib.Z_FINISH
832832
One of the constants Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH.
833833
If mode == Z_FINISH, the compressor object can no longer be
834834
used after calling the flush() method. Otherwise, more data
@@ -840,7 +840,7 @@ Return a bytes object containing any remaining compressed data.
840840

841841
static PyObject *
842842
zlib_Compress_flush_impl(compobject *self, int mode)
843-
/*[clinic end generated code: output=a203f4cefc9de727 input=6982996afe0772d8]*/
843+
/*[clinic end generated code: output=a203f4cefc9de727 input=73ed066794bd15bc]*/
844844
{
845845
int err;
846846
unsigned int length = DEF_BUF_SIZE, new_length;
@@ -1046,7 +1046,7 @@ zlib_Decompress_copy_impl(compobject *self)
10461046
/*[clinic input]
10471047
zlib.Decompress.flush
10481048
1049-
length: uint(c_default="DEF_BUF_SIZE") = DEF_BUF_SIZE
1049+
length: uint(c_default="DEF_BUF_SIZE") = zlib.DEF_BUF_SIZE
10501050
the initial size of the output buffer.
10511051
/
10521052
@@ -1055,7 +1055,7 @@ Return a bytes object containing any remaining decompressed data.
10551055

10561056
static PyObject *
10571057
zlib_Decompress_flush_impl(compobject *self, unsigned int length)
1058-
/*[clinic end generated code: output=db6fb753ab698e22 input=fe7954136712c353]*/
1058+
/*[clinic end generated code: output=db6fb753ab698e22 input=1580956505978993]*/
10591059
{
10601060
int err;
10611061
unsigned int new_length;

0 commit comments

Comments
 (0)