summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-02-05 11:34:01 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-02-05 11:34:01 (GMT)
commit54c1391ba999db670f54911433e8690fcf7ba943 (patch)
tree2af5e1d43674ccf84fe17b5644c693d07cc41e42 /Modules
parent2aa15d80977002f7ac76c7ae9e39e4f39f245374 (diff)
downloadcpython-54c1391ba999db670f54911433e8690fcf7ba943.zip
cpython-54c1391ba999db670f54911433e8690fcf7ba943.tar.gz
cpython-54c1391ba999db670f54911433e8690fcf7ba943.tar.bz2
Issue #20489: Explicitly qualified expressions for default values in methods.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/clinic/zlibmodule.c.h6
-rw-r--r--Modules/zlibmodule.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/Modules/clinic/zlibmodule.c.h b/Modules/clinic/zlibmodule.c.h
index 02911ba..f810fcf 100644
--- a/Modules/clinic/zlibmodule.c.h
+++ b/Modules/clinic/zlibmodule.c.h
@@ -245,7 +245,7 @@ exit:
}
PyDoc_STRVAR(zlib_Compress_flush__doc__,
-"sig=($self, mode=Z_FINISH)\n"
+"sig=($self, mode=zlib.Z_FINISH)\n"
"Return a bytes object containing any remaining compressed data.\n"
"\n"
" mode\n"
@@ -325,7 +325,7 @@ zlib_Decompress_copy(compobject *self, PyObject *Py_UNUSED(ignored))
#endif /* !defined(ZLIB_DECOMPRESS_COPY_METHODDEF) */
PyDoc_STRVAR(zlib_Decompress_flush__doc__,
-"sig=($self, length=DEF_BUF_SIZE)\n"
+"sig=($self, length=zlib.DEF_BUF_SIZE)\n"
"Return a bytes object containing any remaining decompressed data.\n"
"\n"
" length\n"
@@ -424,4 +424,4 @@ exit:
return return_value;
}
-/*[clinic end generated code: output=21556008559f839c input=a9049054013a1b77]*/
+/*[clinic end generated code: output=67d3e81eafcfb982 input=a9049054013a1b77]*/
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index cde16f7..2ba264f 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -828,7 +828,7 @@ zlib_Decompress_decompress_impl(compobject *self, Py_buffer *data, unsigned int
/*[clinic input]
zlib.Compress.flush
- mode: int(c_default="Z_FINISH") = Z_FINISH
+ mode: int(c_default="Z_FINISH") = zlib.Z_FINISH
One of the constants Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH.
If mode == Z_FINISH, the compressor object can no longer be
used after calling the flush() method. Otherwise, more data
@@ -840,7 +840,7 @@ Return a bytes object containing any remaining compressed data.
static PyObject *
zlib_Compress_flush_impl(compobject *self, int mode)
-/*[clinic end generated code: output=a203f4cefc9de727 input=6982996afe0772d8]*/
+/*[clinic end generated code: output=a203f4cefc9de727 input=73ed066794bd15bc]*/
{
int err;
unsigned int length = DEF_BUF_SIZE, new_length;
@@ -1046,7 +1046,7 @@ error:
/*[clinic input]
zlib.Decompress.flush
- length: uint(c_default="DEF_BUF_SIZE") = DEF_BUF_SIZE
+ length: uint(c_default="DEF_BUF_SIZE") = zlib.DEF_BUF_SIZE
the initial size of the output buffer.
/
@@ -1055,7 +1055,7 @@ Return a bytes object containing any remaining decompressed data.
static PyObject *
zlib_Decompress_flush_impl(compobject *self, unsigned int length)
-/*[clinic end generated code: output=db6fb753ab698e22 input=fe7954136712c353]*/
+/*[clinic end generated code: output=db6fb753ab698e22 input=1580956505978993]*/
{
int err;
unsigned int new_length;