summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-04-16 23:39:46 (GMT)
committerGitHub <noreply@github.com>2019-04-16 23:39:46 (GMT)
commit926b0cb5f688808dc11448a0bf3e452d1b92c232 (patch)
treefe640ef0c6966263acec3f651963e669be8cbefa /Modules
parent31e8d69bfe7cf5d4ffe0967cb225d2a8a229cc97 (diff)
downloadcpython-926b0cb5f688808dc11448a0bf3e452d1b92c232.zip
cpython-926b0cb5f688808dc11448a0bf3e452d1b92c232.tar.gz
cpython-926b0cb5f688808dc11448a0bf3e452d1b92c232.tar.bz2
bpo-36641: Add "const" to PyDoc_VAR macro (GH-12854)
It reduces "data" segment in python about 200KB.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index f8ae916..e75e346 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -557,7 +557,7 @@ SSLError_str(PyOSErrorObject *self)
static PyType_Slot sslerror_type_slots[] = {
{Py_tp_base, NULL}, /* Filled out in module init as it's not a constant */
- {Py_tp_doc, SSLError_doc},
+ {Py_tp_doc, (void*)SSLError_doc},
{Py_tp_str, SSLError_str},
{0, 0},
};