Add a docstring to SSLError
This commit is contained in:
parent
b7705b7792
commit
a0e0e23299
@ -2297,6 +2297,10 @@ parse_openssl_version(unsigned long libver,
|
|||||||
*major = libver & 0xFF;
|
*major = libver & 0xFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyDoc_STRVAR(SSLError_doc,
|
||||||
|
"An error occurred in the SSL implementation.");
|
||||||
|
|
||||||
|
|
||||||
PyMODINIT_FUNC
|
PyMODINIT_FUNC
|
||||||
PyInit__ssl(void)
|
PyInit__ssl(void)
|
||||||
{
|
{
|
||||||
@ -2333,7 +2337,8 @@ PyInit__ssl(void)
|
|||||||
OpenSSL_add_all_algorithms();
|
OpenSSL_add_all_algorithms();
|
||||||
|
|
||||||
/* Add symbols to module dict */
|
/* Add symbols to module dict */
|
||||||
PySSLErrorObject = PyErr_NewException("ssl.SSLError",
|
PySSLErrorObject = PyErr_NewExceptionWithDoc("ssl.SSLError",
|
||||||
|
SSLError_doc,
|
||||||
PyExc_OSError,
|
PyExc_OSError,
|
||||||
NULL);
|
NULL);
|
||||||
if (PySSLErrorObject == NULL)
|
if (PySSLErrorObject == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user