summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-22 21:41:52 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-22 21:41:52 (GMT)
commita0e0e232993b87fe446f95d6583d947ae01bf517 (patch)
tree086abf37c0303cc79b57d794c571915d0fc2366b
parentb7705b77926b37e52f0bd36fb6fd4ef6f0e52f0d (diff)
downloadcpython-a0e0e232993b87fe446f95d6583d947ae01bf517.zip
cpython-a0e0e232993b87fe446f95d6583d947ae01bf517.tar.gz
cpython-a0e0e232993b87fe446f95d6583d947ae01bf517.tar.bz2
Add a docstring to SSLError
-rw-r--r--Modules/_ssl.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 36ce33f..2998605 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2297,6 +2297,10 @@ parse_openssl_version(unsigned long libver,
*major = libver & 0xFF;
}
+PyDoc_STRVAR(SSLError_doc,
+"An error occurred in the SSL implementation.");
+
+
PyMODINIT_FUNC
PyInit__ssl(void)
{
@@ -2333,9 +2337,10 @@ PyInit__ssl(void)
OpenSSL_add_all_algorithms();
/* Add symbols to module dict */
- PySSLErrorObject = PyErr_NewException("ssl.SSLError",
- PyExc_OSError,
- NULL);
+ PySSLErrorObject = PyErr_NewExceptionWithDoc("ssl.SSLError",
+ SSLError_doc,
+ PyExc_OSError,
+ NULL);
if (PySSLErrorObject == NULL)
return NULL;
if (PyDict_SetItemString(d, "SSLError", PySSLErrorObject) != 0)