summaryrefslogtreecommitdiff
path: root/Modules/zlibmodule.c
diff options
context:
space:
mode:
authorTal Einat <taleinat@gmail.com>2017-11-03 11:09:00 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2017-11-03 11:09:00 +0200
commit4f57409a2f7bdf8fb559cddc7c6533ca2c471c67 (patch)
treefe4ded27d3d8ade96a60a849ddce32c6facfbc6e /Modules/zlibmodule.c
parent700d2e4755921d6c339ff20dacecde1aea64de34 (diff)
downloadcpython-git-4f57409a2f7bdf8fb559cddc7c6533ca2c471c67.tar.gz
bpo-31926: fix missing *_METHODDEF statements by argument clinic (#4230)
When a single .c file contains several functions and/or methods with the same name, a safety _METHODDEF #define statement is generated only for one of them. This fixes the bug by using the full name of the function to avoid duplicates rather than just the name.
Diffstat (limited to 'Modules/zlibmodule.c')
-rw-r--r--Modules/zlibmodule.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index cf086de757..cb2aae1069 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -1138,9 +1138,7 @@ static PyMethodDef comp_methods[] =
{
ZLIB_COMPRESS_COMPRESS_METHODDEF
ZLIB_COMPRESS_FLUSH_METHODDEF
-#ifdef HAVE_ZLIB_COPY
ZLIB_COMPRESS_COPY_METHODDEF
-#endif
{NULL, NULL}
};
@@ -1148,9 +1146,7 @@ static PyMethodDef Decomp_methods[] =
{
ZLIB_DECOMPRESS_DECOMPRESS_METHODDEF
ZLIB_DECOMPRESS_FLUSH_METHODDEF
-#ifdef HAVE_ZLIB_COPY
ZLIB_DECOMPRESS_COPY_METHODDEF
-#endif
{NULL, NULL}
};